Problem with CSS:hover!

I did try that before, but still couldn't get it working, eg:

Code:
#offon5, #offon6 {
	display: block;
	float: left;
	width: 100px;
	height: 100px;
	background: url(offon1.jpg) no-repeat;
	}
#offon6 { background-image: url(offon2.jpg); }
#offon5 a:hover, #offon6 a:hover { background-position: -100px 0; display: block }

Doesn't work in any browsers? When I try to follow the advise of this (which is different to what I am trying to do) and say use "#offon5 a" for the basic info, that doesn't work either. I am quite stumped.

Refresh this page again to see what I'm struggling with: http://www.whollypointless.co.uk/offon.html. As far as I can see 7/8 is pretty much the same thing as the example page?

thanks!

Edit: 7/8
Code:
#offon7 a, #offon8 a {
	display: block;
	float: left;
	width: 100px;
	height: 100px;
	background: url(offon1.jpg) no-repeat;
	}
#offon7 a { background-image: url(offon2.jpg); }
#offon8 a:hover, #offon6 a:hover { background-position: -100px 0; display: block; }
 
Heh, fantastic, thanks very much :). That's a relief!



(And in case anyone searches and finds this thread I've updated the page with the working code).
 
Back
Top Bottom