i am trying to get my drop down navigation to centre within the div but nothing i try will work. here is the css and html for it, if anyone could help i would be extremely grateful.
html
<div id="topmenu">
<ul id="menu">
<li>
<a href="">Home</a></li>
<li>
<a href="">About Us</a>
<ul>
<li><a href="">The Team</a></li>
<li><a href="">History</a></li>
<li><a href="">Vision</a></li>
</ul>
</li>
<li>
<a href="">Products</a>
<ul>
<li><a href="">Cozy Couch</a></li>
<li><a href="">Great Table</a></li>
<li><a href="">Small Chair</a></li>
<li><a href="">Shiny Shelf</a></li>
<li><a href="">Invisible Nothing</a></li>
</ul>
</li>
<li>
<a href="">Contact</a>
<ul>
<li><a href="">Online</a></li>
<li><a href="">Right Here</a></li>
<li><a href="">Somewhere Else</a></li>
</ul>
</li>
</ul>
</div>
css
#topmenu ul {
font-family: Arial, Verdana;
font-size: 14px;
margin: 0;
padding: inherit;
list-style: none;
}
ul li {
display: block;
position: relative;
float: left;
}
li ul { display: none; }
ul li a {
display: block;
left: 200px;
text-decoration: none;
color: #ffffff;
border-top: 1px solid #ffffff;
padding: 5px 15px 5px 15px;
background: none;)
margin-left: 1px;
white-space: nowrap;
}
ul li a:hover { background: f2f2f2; }
li:hover ul {
display: block;
position: absolute;
}
li:hover li {
float: none;
font-size: 11px;
}
li:hover a { background: #F2F2F2 }
li:hover li a:hover { background: #f2f2f2; }