css optimization

Giganews Newsgroups
Subject: css optimization
Posted by:  Patrick (psmi…@marine.usf.edu)
Date: Wed, 16 May 2007

Hi All,

Was wondering what optimizing a style sheet involves? I have a current
style sheet that weighs in at 9 KB. Is this considered large or small? I
tried a couple of these online optimizers. They take out all the white
space and make it next to impossible to read the file. One optimizer
left the css file useless.  Good thing I didn't choose the same name as
my original file.

Which format would be better for a css file?

  #topcontentright
    {clear:right;
    width:25%;
    height:98px;
    padding:0px;
    float:right;
    margin:0px;}

#topcontentright{clear:right;width:25%;height:98px;padding:0px;float:right;margin:0px;}

Also is there a hierarchy as far as the order of properties for each
selector?

Thanks for your thoughts,
Patrick

Replies