I have a button places within a div made to look like its part of a backgorund div, and when rolled over it expands as below.
It’s the coloured brandcheck button on the left -
http://www.cristalstandards.com/dev/brandCheck_Module.php
The problem I have is the area thats set for the images to show, the rollover area for the button is to large for the original state button, and as you get close to it the rollover starts to early.
Here is my code:
<div style="position:relative; z-index:10; float:left; width:260px; height:360px; left:140px; top:41px;">
<a href="#" class="rollover" title="Webvamp"><span><img src="images/module_Carousel/BrandCheck_Button_Small.png" border="0" /></span></a>
</div>
CSS:
#module_Content_Left a.rollover {
display: block;
width: 94px;
height: 137px;
text-decoration: none;
}
#module_Content_Left a.rollover:hover {
background-position: 0 0;
background:url(../images/module_Carousel/BrandCheck_Button_Large.png);
width: 260px;
height: 360px;
}
#module_Content_Left .rollover:hover span
{
position: absolute;
top: -999em;
}