Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jul 2009
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Thumbs up How do I center a drop down menu?

    Hi,

    I want to center a javascript and CSS horizontal dropdown menu, How do I centre the bar I am using the stylesheet. www.weatherinaflash.com/CSS_files/styles.css

    Please Help

    Thanks

    Random

  2. #2
    Regular Coder
    Join Date
    May 2009
    Posts
    425
    Thanks
    3
    Thanked 62 Times in 61 Posts
    CSS:
    Code:
    li {
        text-align:center;
    }

  3. #3
    New Coder
    Join Date
    Jul 2009
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Cool Centering the dropdown menu

    Quote Originally Posted by tfburges View Post
    CSS:
    Code:
    li {
        text-align:center;
    }
    I have tried this but it still does not work. Is there anything else I could try?

    thanks,

    Random.

  4. #4
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,895
    Thanks
    8
    Thanked 145 Times in 143 Posts
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis


 

Posting Permissions

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