MyBB Community Forums
Need Nav Bar Centered ! - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: Need Nav Bar Centered ! (/thread-128410.html)



Need Nav Bar Centered ! - rambo - 2012-10-28

I need my nav bar centered!

Im not to good at CSS. So im hoping someone can help me i tried alot but nothing has worked yet.

Need the links in the center!
[Image: 30j5n38.png]


Website: GamingGeneral.net

Thanks in advance!

Anyone?!!!!!!!!!!!!!!!!!!!!!


RE: Need Nav Bar Centered ! - MarkW7 - 2012-10-29

You could edit the ul.menu in your global.css line 156

And change
right: 5%;

and add a left value to 5% also.


Old code:

ul.menu {
    color: #CCCCCC;
    font-size: 12px;
    position: absolute;
    right: 15px;
    text-align: center;
    top: 23px;
    z-index: 2;
}


New code:

ul.menu {
    color: #CCCCCC;
    font-size: 12px;
    position: absolute;
    right: 5%;
    left: 5%;
    text-align: center;
    top: 23px;
    z-index: 2;
}

Does it work? Yep.
Is it the correct way to do it? Probably not, something like margin-left: auto; and margin-right: auto; probably is but that didn't work.

Shy


RE: Need Nav Bar Centered ! - rambo - 2012-10-29

Worked great thanks alot man!


RE: Need Nav Bar Centered ! - s3_gunzel - 2012-10-29

margin:0 auto;

comes to mind