IE 7 anchor background
Posted
by Oden
on Stack Overflow
See other posts from Stack Overflow
or by Oden
Published on 2010-05-15T13:10:21Z
Indexed on
2010/05/15
13:14 UTC
Read the original article
Hit count: 347
Why does IE 7 not handle, the css background property for anchors?
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>
It has no background, but only in ie7. Why?
© Stack Overflow or respective owner