3 ms·
What would be nice is a script that extracts the image urls from the stylesheet(s), creates the sprite image for the used images, then creates another css file
by riso 17y ago
What would be nice is a script that extracts the image urls from the stylesheet(s), creates the sprite image for the used images, then creates another css file with the required offsets for the classes.
I have been putting off spending some time creating a script like this, mostly because I am pretty sure there is already one out there that does it.
- dpifke 17y agoGoogle Web Toolkit does this; I'm sure other web development frameworks do as well. A quick search for a standalone utility revealed: http://spritegen.website-performance.org/ http://spritegen.website-performance.org/ .