No replies
DanA
DanA's picture
Offline
Elder
Last seen: 12 years 14 weeks ago
Timezone: GMT+2
Joined: 2004-08-14
Posts: 1087
Points: 2

I have 2 problems with the code below :
- with MSIE the span is not underlined when the link is hoovered whereas it is underlined with Mozilla.
- Mozilla applies the margin-left while MSIE doesn't.
Is there a cross-browser solution ?

style

a:hover{
color:#000000;
}
li a span{
display:none;
}
li a:hover span{
margin-left:20px;
text-decoration:none;
display:inline;
}

html
<ul>
<li><a href="#">test <span>popup</span></a></li>
</ul>