Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

how to center main menu below header 2.0RC1?

Aloittaja timned88, helmikuu 11, 2009, 09:13:05 IP

« edellinen - seuraava »

timned88

i would like to center the main menu buttons below the header section in 2.0RC1.
in 1.1.x, i believe that i just used a <center> tag in index.template.php but that doesn't seem possible in 2.0RC1.

i found a way to center it (sort of) in index.css:
#main_menu
{
margin-left: auto;
margin-right: auto;
width: 50em;
}

but the problem is that the width: 50em; is a subject trial/error adjustment and i want to avoid that.
any ideas?

greyknight17

How about something like:

#main_menu
{
margin-left: auto;
margin-right: auto;
width: 50%;
}

Advertisement: