littlevictorian Posted November 21, 2013 Share Posted November 21, 2013 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 More sharing options...
Hadien Posted November 21, 2013 Share Posted November 21, 2013 works fine for me, and all i had to do was add some <html> tags. Link to comment Share on other sites More sharing options...
littlevictorian Posted November 21, 2013 Author Share Posted November 21, 2013 Ugh, it does work perfectly in the browser... Apparently it just won't work when inserted into a wordpress post. Thanks for checking it out. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now