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 to the CF scene
    Join Date
    Jul 2009
    Posts
    9
    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
    Regular Coder
    Join Date
    May 2009
    Posts
    425
    Thanks
    3
    Thanked 62 Times in 61 Posts
    CSS:
    Code:
    li {
        text-align:center;
    }

  • #3
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    9
    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
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,788
    Thanks
    8
    Thanked 131 Times in 129 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
    •