Harry010,
This technique is generally called a "sprite".
The pseudo class :hover only applies to clickable links, not divs, therefore try : <a class="myImage" href="#" >My link</a>
If you don't want text in the link, then use .
If you want text in the link, then you will probably want it v & h center-aligned. Try line-height:100px; text-align:center; text-decoration:none; . You may also want text-decoration:none; in the :hover directives as underline will tend to distract from the background rollover effect.Airshow
Airshow
WiFi Lounge Lizard
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
Harry,
So it works on a raw div!!!
Airshow
Airshow
WiFi Lounge Lizard
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
harry010,
what is this code doing on your site?
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5789165-1");
pageTracker._trackPageview();
</script>
It is rising error on my firefox v3.5.2
Troy III
Practically a Master Poster
609 posts since Jun 2008
Reputation Points: 120
Solved Threads: 80
Troy III
Practically a Master Poster
609 posts since Jun 2008
Reputation Points: 120
Solved Threads: 80
Sorry my missunderstanding,
anyway, its an adware and a spyware blocked from my security. :)
Troy III
Practically a Master Poster
609 posts since Jun 2008
Reputation Points: 120
Solved Threads: 80
Airshow
WiFi Lounge Lizard
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372