Forum Moderators: not2easy
#nav li {position: relative;}
#nav li:hover > a {
background: #486891;
color: #FFFFFF;
margin: 0;
}
#nav .menu-header li,
div.menu li {
float: left;
position: relative;
}
so I am not quite sure what I could possibly send you
a {margin: 0;} :o margin: auto in the following rule: #nav a { color: #fff; display: block; line-height: 25px; padding: 0 10px; text-decoration: none; margin: auto; }
a {margin: 0;} is added.. I can only break the simple example when I add the full HTML (after me telling you to strip it too!) .. and the a {margin: 0;} rule.. maybe I'll look for the why but I'll leave that 'til tomorrow.. I'll post an example for you to see webprutser even if Rusty's just happy with the fix ;)
a {margin: 0;} /* this was part of the reset */
#nav { background: #0e79bf; /*url(menubg.jpg) repeat-x;*/}
#nav .menu-header {width: 643px; overflow: hidden; /* overflow is for nonIE7 browsers to clear floats just for demo */}
#nav .menu-header ul {list-style: none; margin: 0;}
#nav .menu-header li {float: left; position: relative;}
#nav a { color: #fff; display: block;}
/*#nav a {margin: auto;}*/ /* uncomment to fix */
#nav li a:hover {background-color:#fff; color: #000; margin: 0;}
<div id="nav">
<div class="menu-header">
<ul><li><a href="#">Home</a></li></ul>
</div>
</div>
#nav li a:hover {background-color:#fff; color: #000; margin: 0; text-indent: 0;}