Log in

View Full Version : centre a menu across a page



farmerbill42
02-28-2010, 11:31 AM
I ham trying to set up a Vertical Divider menu with 3 menu items in the centre across the page. The three menu items are no problem but how do I get the menu in the centre of the page?

Snookerman
02-28-2010, 11:46 AM
Give the container a width and an auto left-right margin, example:

div#nav {
width: 40em;
margin: 0 auto;
}

Good luck!

farmerbill42
03-01-2010, 11:54 AM
Thanks Snookerman but all this did was to leave the 3 item menu at the left but filled the rest of the width with an ampty box with a blue border and white backgroiund.

Farmerbill42

Snookerman
03-01-2010, 05:45 PM
My code didn't do that, your code did. If you don't post it or provide a link to your page there is no way I can help you.