Jump to content

Struggling with sprites


littlevictorian

Recommended Posts

I'm trying to use a sprite for the first time, and I've done something wrong.

<head>	<style type="text/css">.csstest a{display: block;width: 500px;height: 750px;background: url(http://www.littlevictorian.com/wp-content/uploads/2013/11/SofaRolloverSprite.png);background-position: 0 0;}.csstest a:hover {background-position: -500px 0;}	</style></head>		<body><div class="csstest"><a href="http://www.littlevictorian.com/?p=1180"></a></div></body>

Could someone please let me know what I'm doing wrong? Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...