Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Simple Sprite Not Working Re: Simple Sprite Not Working

#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; }