cannot center ul dropdown menu without center tag

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
smitty62Asked:
Who is Participating?
 
HagayMandelConnect With a Mentor Commented:
Just add to #topNavBar:
margin-right:auto;
margin-left:auto;

Open in new window

This will center the upper menu
0
 
Greg AlexanderLead DeveloperCommented:
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

0
 
Greg AlexanderLead DeveloperCommented:
You can then wrap another div around that with 100% and a blue background
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
smitty62Author Commented:
Nope, didn't work.  Here's the file.
0
 
Greg AlexanderLead DeveloperCommented:
The file did not come across
0
 
smitty62Author 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
0
 
smitty62Author Commented:
Thank you, that worked.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.