We help IT Professionals succeed at work.

cannot center ul dropdown menu without center tag

smitty62
smitty62 asked
on
Medium Priority
322 Views
Last Modified: 2012-08-13
I need to get this page 100% validated using html5.  I can center the menu using the center tag, but that is not compliant.  How can I get this page to center without the <center> tag.  I have tried and tried, and cannot do it.  

http://insurance.illinois.gov/reports/eeheaderproblem.asp
Comment
Watch Question

Greg AlexanderLead Developer

Commented:
Try change your css like this:
#topNavBar{

width:50%;

background:#369;

font-weight:bold;

height:20px;

padding:0px;

margin:auto;

position:relative;

border:0;

z-index:100001;

font-size:small;

}

Open in new window

Greg AlexanderLead Developer

Commented:
You can then wrap another div around that with 100% and a blue background

Author

Commented:
Nope, didn't work.  Here's the file.
Greg AlexanderLead Developer

Commented:
The file did not come across

Author

Commented:
Here it is...hopefully.  I changed the extension to txt, but you can change it back to asp after you receive it. EEHeaderProblem.txt
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thank you, that worked.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.