PDA

View Full Version : CSS Sprite help...



Tyler138
Feb 13th, 2010, 05:41 PM
Hey guys,

Basically i have been following this tutorial to help build a css sprite with images. I have tried to make it so that its black and white when nothing is happening to it and then colour gets added when you hover over it or click it...

And well for some reason it wont work, i have tried comparing it to the tutorial and all seems well, any help would be great...

http://www.tyler138.com/test/contactmenu.html

coothead
Feb 13th, 2010, 06:03 PM
Hi there Tyler138,

you have a typing error here...


ul.menu li a.lastfm:hover, ul.menu li a.lastfm:active,
ul.menu li a.twitter:hover, ul.menu li a.twitter:active,
ul.menu li a.youtube:hover, ul.menu li a.youtube:active, {
background-position:bottom center;
}

Remove the comma, highlighted in red, and all should be well. ;)

coothead

Tyler138
Feb 13th, 2010, 06:05 PM
doh..!!!

thanks, knew it would be something simple, thanks a lot

coothead
Feb 13th, 2010, 06:06 PM
No problem, you're welcome. ;)