Why is there an issue with the css background property for anchors in IE 7?
css:
.nav a
{
float: left;
display: block;
padding: 5px;
height: 25px;
line-height: 25px;
font-weight: bold;
}
.nav a:hover
{
background: #fff;
color: #000;
}
html:
<div class="nav">
<a href="#">anchor</a>
</div>
The background does not appear when viewed in IE7. Why is this happening?