orangeIV
07-14-2007, 12:03 PM
Hello, I'm using CSS to do a rollover effect. I've used a similar technique before, and it has always worked in both Firefox and IE. Today I used a slightly modified method, giving the rollover an absolute position, and I found it works in IE but not firefox. Here is the HTML:
<div class="homecolumn2">
<a id="games2" href="games.htm"></a>
</div>
..and here is the CSS:
a#games2 {width: 200px; height: 200px; background: url('../images/gameslogo.gif'); overflow:visible; background-repeat: no-repeat;}
a#games2:hover {width: 300px; height: 200px; position: absolute; left: 530px;}
.homecolumn2
{
posistion: absolute; top: 0px;
width: 200px;
padding: 0px 0px 0px 0px;
float: right;
}
Can anybody see what the problem is?
<div class="homecolumn2">
<a id="games2" href="games.htm"></a>
</div>
..and here is the CSS:
a#games2 {width: 200px; height: 200px; background: url('../images/gameslogo.gif'); overflow:visible; background-repeat: no-repeat;}
a#games2:hover {width: 300px; height: 200px; position: absolute; left: 530px;}
.homecolumn2
{
posistion: absolute; top: 0px;
width: 200px;
padding: 0px 0px 0px 0px;
float: right;
}
Can anybody see what the problem is?