Results 1 to 5 of 5

Thread: How to Center Chrome CSS dropdown script

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

    Default How to Center Chrome CSS dropdown script

    Is there a way to have the Chrome CSS dropdown appear 'centered' instead of to the left.

    My site is 800px wide and centered...I'd like this script to appear with the rest of the page (however it is still appearing to the left).

    Thank you in advance

  2. #2
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Hi.. See this thread it might help:

    http://www.dynamicdrive.com/forums/s...ead.php?t=8537
    Very Best Rgds, Simonf :cool:
    __________________________________
    My Site | E-Mail Me

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

    Default

    Quote Originally Posted by simonf
    Hi.. See this thread it might help:

    http://www.dynamicdrive.com/forums/s...ead.php?t=8537
    Thanks simonf!

    Actually I just tried something and it worked (in-case anyone is interested). I put the code into a table and centered the table....it works fine. I guess I was thinking too much into how to do this by believing I had to modify the code

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

    Default

    I had this in a div tag. I tried adding the align="center" but it doesn't work. Does it has to be in a table for it to be centered properly?

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by RComet
    I had this in a div tag. I tried adding the align="center" but it doesn't work. Does it has to be in a table for it to be centered properly?
    This menu is difficult to position as, ordinary methods often either fail to do the trick and/or create unexpected consequences either in other screen sizes/resolutions or in the behavior of the drop downs. If a table works, I'd say 'go for it'.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •