3 ms·
I use both. One line is pretty handy for example with a css sprite I had to use... 30 lines of identical elements (but different background-position) is easier
by decadentcactus 17y ago
I use both. One line is pretty handy for example with a css sprite I had to use... 30 lines of identical elements (but different background-position) is easier on one line each.
- Jach 17y agoSounds like you could use Sass or simply generate all those with a trivial script. http://blog.dynamic50.com/index.php/2009/08/cooking-with-sass/ http://blog.dynamic50.com/index.php/2009/08/cooking-with-sas...
- decadentcactus 16y agoI actually downloaded CleverCSS (similar to Sass) a few days ago and it's been working great so far. I'll need to figure out loops though. Although it is all written at the moment so it's no big deal (probably quicker to Ctrl+V 30 times and go through it, than writing a generator).