Archive for September 6th, 2009

06Sep

CSS Sprites

Posted by Elf Sternberg as javascript, web development

It seems like such a stupid thing, but hey, now I know how to use CSS sprites. Basically, it’s the same idea as a viewport slider: treat your rectangular space as a viewport onto a background image. By using the background-position attribute and the .css() control (in jQuery; there are others in other libraries), you [...]


Recent Comments