Forums

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

Home Forums CSS CSS Sprites in a UL Re: CSS Sprites in a UL

#106427
TheDoc
Member

When these types of situations come up I realize that sprites aren’t for everything. If you *really* wanted to use a sprite you could use a pseudo element like :before to create an object that uses the sprite as a background image. If you position it correctly (and give it a width and height) you can mimic the effect that you’re going for.