By UNarmed on
This is realy strange ... i have an a:hover state on a div with a background image. No matter where i place this image in my site, when i move my mouse over the div the darn image just has to load again and it isnt cached.
I have tried preloading the image a number of ways and it get the exact same result. Below is a example of the html and css i used.
<a href="http://smilesgroup.co.uk/cms/Treatments" class="BoxTreatmments1b"></a>
<a href="http://smilesgroup.co.uk/cms/Treatments" class="BoxTreatmments1"></a>
.BoxTreatmments1b{
display:block;
width:159px;
height:141px;
margin:0 auto;
margin-top:10px;
background:url(../images/BoxTreatmentsOver.gif)
}
.BoxTreatmments1{
display:block;
width:159px;
height:141px;
margin:0 auto;
margin-top:10px;
background:url(../images/BoxTreatments.gif)
}
.BoxTreatmments1:hover{
background:url(../images/BoxTreatmentsOver.gif);
}
This is the final thing i need to get sorted for a project so if someone could give me a hint or point me in the right direction i would greatly appreciated it!
Regards
Comments
When i place the above code
When i place the above code in a standard html document it works perfectly so i am thinking its drupals doing =/
My theme is based of the
My theme is based of the clean theme. I mainly changed the stylesheets, block.tpl.php and page.tpl.php if that makes a difference.
I have delelted all the stylesheets and styles inside my theme and the problem stil persists ... ehhhh im totally stomped 0_-