Centering horizontal menu?

Nixtev
Posts: 9
Joined: 2012-09-01 22:28
Location: NE England, UK

Centering horizontal menu?

Post by Nixtev » 2012-10-10 11:47

Hi, anyone know how to do this please?
Thanks

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: Centering horizontal menu?

Post by Fred » 2012-10-10 14:44

Never had the need to do that yet.

Isn't it as simple as render the menu in a <div> that is centred?

Code: Select all

#menu_div {
     width: 700px;
     margine-left: auto;
     margine-right: auto;
}

Code: Select all

<div id=menu_div">
    <?php render menu here;?>
</div>

Nixtev
Posts: 9
Joined: 2012-09-01 22:28
Location: NE England, UK

Re: Centering horizontal menu?

Post by Nixtev » 2012-10-10 18:05

Sadly I've not managed to get a simple solution or a complicated solution to work and had already tried centering the container div with no luck.
Looks like I'll have to try stripping it all down step by step and see what that does.

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: Centering horizontal menu?

Post by Fred » 2012-10-11 08:38

Try using "Firebug" to find the class name of the <ul>

Post Reply