Home › Forums › CSS › Simple Sprite Not Working › Re: Simple Sprite Not Working
May 9, 2011 at 4:24 am
#77106
CrownOfMars
Member
Well, i ended up being close
As you said i had errors, i had to change the css to:
.icon { position: absolute; top: 0; left: 0; width: 50px; height: 50px; background: url(../../images/icons.png); }
.homeicon { background-position: 0 0; }
.newsicon { background-position: -50px 0; }