www.webdeveloper.com
Results 1 to 2 of 2

Thread: Trouble centering dropdown menu - Help Please!!!

  1. #1
    Join Date
    Jan 2006
    Posts
    10

    Trouble centering dropdown menu - Help Please!!!

    I can't seem to get my dropdown menus to center. I provided a link below. They will only maintain their position when the site is aligned to the left. I would really like my site to be centered, but when I do this my LAYERS don't center with the rest of the site. They only have from TOP or Left positions.

    http://www.tristatestudios.com/website/dropdrop.html

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Wrap a div(id="container ") around the contents of body, then add:
    Code:
    <style type="text/css">
    body {
    text-align:center;
    }
    #container {
    position:relative;
    margin:0 auto;
    width:775px;
    text-align:left;
    }
    </style>
    At least 98% of internet users' DNA is identical to that of chimpanzees

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles