smitty62
asked on
Center a dropdown menu line in css
No matter what I try I can't get this display menu line to center. It also wraps even when I use white-space:nowrap. How can I resolve these problems:
http://insurance.illinois.gov/2011_NewHeader/menu.html
http://insurance.illinois.gov/2011_NewHeader/menu.html
You can try one of two things:
1.) use the align attribute in your div tag
2.) Place your menu within a table that spans 100% of the page, then center align the menu in a TD tag.
1.) use the align attribute in your div tag
2.) Place your menu within a table that spans 100% of the page, then center align the menu in a TD tag.
ASKER
I tried text-align, and that didn't work. I prefer to keep exclusively CSS with no tables. Is there another align attribute I should try, and if so where in the style sheet should I put it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
#topNavBar {
background: none repeat scroll 0 0 #0000FF;
font-weight: bold;
margin: 0 auto;
width: 775px;
}