Results 1 to 4 of 4

Thread: Chrome CSS Dropdown menu

  1. #1
    Join Date
    Mar 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Chrome CSS Dropdown menu

    How do I get my links centered? The container <div> tag sets the nav bar at 680 pixels. All my links are on the lefthand side of the bar, with a lot of blank space on the right.

    I either need to center my buttons, or have them take a percentage of the width (for example, 5 buttons at 20% width each)

    I've messed with the float in the .css documents but i'm no expert on this, and it turns out pretty bad. Any help?

  2. #2
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question me too!

    Hi, I also would like to know how to center the Chrome drop down menu on a page. I can only either float it left or right, but not align to the center

    Would appreciate anyone's help

    Fen

  3. #3
    Join Date
    Aug 2004
    Posts
    9,897
    Thanks
    3
    Thanked 967 Times in 955 Posts
    Blog Entries
    15

    Default

    There was a thread about this- in a nutshell, I made a crack at centering the menu items, though the way it's constructed, using floats, it turned out more difficult than I thought.

    I'll have to revisit this issue again when I have time. It may even require a different set of CSS altogether.

  4. #4
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your reply. I did a search and found the other thread about this subject, so I apologise.

    I have actually managed to partly solve the problem, all be it by increasing the left hand padding for the menu to give the impression it is centred. I then managed to remove the last divider graphic so the only dividers are inbetween the text.

    Thanks again

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
  •