Jaime,

<x-tad-bigger>I have been thinking if there are any ways to minimise CSS files as my css files are growing bigger and bigger.There are so many different ways to write the CSS codes but which way is the most efficient way so to save space but still looks neat.</x-tad-bigger>
<x-tad-bigger>�</x-tad-bigger>
<x-tad-bigger>I haven't been able to find a writeup on this in the net. Anyone has any suggestion?
</x-tad-bigger>

I guess its a matter of taste.

Because whitespace is in essence ignored, you can add formatting as you please.

A couple of very common formats are

p {
color: red;
font-size: 1em;
}

p {
color: red;
font-size: 1em;
}


p {color: red;
font-size: 1em;}

I kind of like the properties on separate lines, and even tabbing them in to make them more obvious

Now, at the risk of sounding promotional, Style Master, which I am one of the developers of (by the way, it is Australian, for what it's worth, don't let the .com address fool you :-) has a Format Style Sheet feature.

You simply format a dummy rule in the options/preferences window, then you can apply this to any style sheet. Style aster will automatically format your style sheets as you go, when you use its editors.

BTW, we've just upgraded Style Master to 3.5. It's for Mac and Windows, and you can get more information here.

http://www.westciv.com/style_master/

And even though my partner at westciv, Maxine, will kill me (don't tell her ok) for WSG members here is a little special offer.

Get Style Master for US$49.99 instead of $59.99, but only here

https://order.kagi.com/cgi-bin/store.cgi?storeID=WC3&&

and only for a limited time (until Maxine finds out :-)

thanks,

john

John Allsopp

:: westciv ::
software, courses, resources for a standards based web
style master blog http://westciv.typepad.com/dog_or_higher/
http://www.westciv.com/

Reply via email to