By bloid
via css.dzone.com
Published: Feb 19 2008 / 08:06
Although CSS is a great formatting tool, the styling language has a long way to go to keep Web Developers satisfied. There are some definite holes in CSS that need to be filled. Until we get what I propose below, javascript can help fill some of the holes and so can images, but CSS should eventually incorporate my requests.
Comments
amphi replied ago:
Yes, variables are a good idea. However, "white" is a very bad name. Once you changed that to something else than white the code will make very little sense. Personally I would only use em for colors, I think. And eventually image URLs.
So, at the beginning you have all colors from your CI and right below that the URLs of all images.
Other than that it's not really worth it. All that repetition can be sorted out with gzip compression.
Hm.
You know... some content management systems can already process stylesheets and scripts. So far I've only seen combining of several files and compression. But of course it would be also possible to use some kind of preprocessor directives there (or just plain PHP).
Another thing that would be nice is a foreground property. So, you get 3 "layers". Background, the element itself, and the foreground on top. I don't really need it often, but every once in a while it would be really nice to have.
Voters For This Link (12)
Voters Against This Link (1)