Advanced Search

Results 1 to 4 of 4

Thread: centre a menu across a page

  1. #1
    Join Date
    Feb 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default centre a menu across a page

    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?

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Give the container a width and an auto left-right margin, example:
    Code:
    div#nav {
    width: 40em;
    margin: 0 auto;
    }
    Good luck!
    Eddy Proca
    I love Dropbox. Get it through my girlfriend's referral link (I reached my limit) and both you and her get 500 MB extra! Thanks and you're welcome!

  3. #3
    Join Date
    Feb 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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
    Last edited by farmerbill42; 03-01-2010 at 03:28 PM.

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    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.
    Eddy Proca
    I love Dropbox. Get it through my girlfriend's referral link (I reached my limit) and both you and her get 500 MB extra! Thanks and you're welcome!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •