Hi,
I have the following CSS and HTML to produce a rollover effect by using the "height" property in CSS. This works fine in Firefox and in IE8 but when I switch IE8 to "compatibility view" it only shows the whole gif image instead of only 19px height. In other words you can see both states of the menu option instead of it initially showing the bottom 19 px and then the top 19 px when the mouse hovers over it.
Here's my CSS:
#bd .memlinks a{
display:block;
color:#999;
font-size:1.4em;
text-decoration:none;
overflow:hidden;
text-height:19px;
height:19px;
float:left;
}
#bd .memlinks a:focus img,
#bd .memlinks a:hover img{
top:-19px;
}
#bd .memlinks span{
float:left;
}
#bd .memlinks span,
#bd .memlinks a img{
position:relative;
}
Here is the HTML:
<div id="bd" class="disclaimer">
<p class="clear memlinks" style="margin-left:auto; margin-right:auto; width:650px;">
<a href="test.php"><img src="/images/memnav/menu1.gif"/></a>
</p>
I've been tearing my hair out with this one and would really appreciate any light you can shed on this.
Many thanks for your help
John ;-)
</div>
I don't make mistakes, I'm merely beta-testing life.
I have the following CSS and HTML to produce a rollover effect by using the "height" property in CSS. This works fine in Firefox and in IE8 but when I switch IE8 to "compatibility view" it only shows the whole gif image instead of only 19px height. In other words you can see both states of the menu option instead of it initially showing the bottom 19 px and then the top 19 px when the mouse hovers over it.
Here's my CSS:
#bd .memlinks a{
display:block;
color:#999;
font-size:1.4em;
text-decoration:none;
overflow:hidden;
text-height:19px;
height:19px;
float:left;
}
#bd .memlinks a:focus img,
#bd .memlinks a:hover img{
top:-19px;
}
#bd .memlinks span{
float:left;
}
#bd .memlinks span,
#bd .memlinks a img{
position:relative;
}
Here is the HTML:
<div id="bd" class="disclaimer">
<p class="clear memlinks" style="margin-left:auto; margin-right:auto; width:650px;">
<a href="test.php"><img src="/images/memnav/menu1.gif"/></a>
</p>
I've been tearing my hair out with this one and would really appreciate any light you can shed on this.
Many thanks for your help
John ;-)
</div>
I don't make mistakes, I'm merely beta-testing life.