Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: timned88 - helmikuu 11, 2009, 09:13:05 IP

Otsikko: how to center main menu below header 2.0RC1?
Kirjoitti: timned88 - helmikuu 11, 2009, 09:13:05 IP
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?
Otsikko: Re: how to center main menu below header 2.0RC1?
Kirjoitti: greyknight17 - helmikuu 14, 2009, 05:47:05 IP
How about something like:

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