How to center a ul within a div menu

PexGefbybeapy

New Member
I'm trying to center a ul within a div menu. I've looked at other menu's and tried every combination I can think of, yet I still can't get it.Here's the code:\[code\]#cssmenu ul{ margin:0 auto; padding:0; list-style-type:none; width:100%; position:relative; display:block; height:38px; font-size:14px; background:#f9f8f8; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; font-family:Arial,Helvetica,sans-serif;}#cssmenu li{ display:block; float:left; margin:0; pading:0; }#cssmenu li a{ display:block; float:left; color:#333333; text-decoration:none; padding:12px 20px 0 20px; height:24px; height:38px; }#cssmenu li a:hover{ text-decoration:underline; } <div id="cssmenu"><ul><li><a href="http://stackoverflow.com/questions/14529174/#">Home</a></li><li><a href="http://stackoverflow.com/questions/14529174/#">About</a></li><li><a href="http://stackoverflow.com/questions/14529174/#">The Program</a></li><li><a href="http://stackoverflow.com/questions/14529174/#">Blog</a></li><li><a href="http://stackoverflow.com/questions/14529174/#">Support</a></li><li><a href="http://stackoverflow.com/questions/14529174/#">Members Login</a></li></ul></div>\[/code\]Any help would be greatly appreciated.Thanks!Mike
 
Back
Top