Design News:
Clean and Optimized CSS Code
Some wonderful pointers on how to optimize your CSS code and also become more efficient in creating yout style sheets. These are great examples I even go by!
Comments (4)
Wondering if anyone has ever compressed their style sheets?
I mean does the size really matter that much?? I do keep my css clean but i’m not a css-tidy nazi as mat would put it, I might add some extra white space here and there and the likes, and as or shorthand, i must admit, I dont do it much…but I cant say ive seen negative results because of that? so what gives? am I missing something?
Oh, something i always do though is document my code, has proved to be a life savor in the past! specially when i go back to a really old site that I have no recollection of at all
I’ve never found it necessary to compress the CSS files, using instead, gz compression settings in IIS /Apache.
I HAVE on occasion, obfuscated the CSS and HTML + Javascript, by running them through a tokenizer I wrote. (all CSS classes get resolved to a 16 digit hex string) all Javascript functions and variables get scrambled.
why? the obvious reasons, also just to play with some C# code
Yeh never compressed, really not that necessary but always document my HTML and CSS.
I nearly posted this myself then realised you’d already done it! It is useful stuff to know.