style sheets (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


Brandon -> style sheets (8/10/2005 15:38:18)

Ok, as you know from my last post I'm working on cleaning up one of the sites I’m working on...getting ride of a lot of code....and using more CSS. My question is how long can one of these style sheets be....I mean I keep finding more and more that I can do with CSS and my sheet keeps getting longer and longer...Is there a point where it can be to long?




womble -> RE: style sheets (8/10/2005 16:27:03)

Probably the main factor is the size of the resulting file. The site I'm currently working on, the main css file is up to around 850 lines long, around 25kb filesize, though I know I've got a lot of duplication in there that I need to take out. Trying it out on the server it's a little slow loading, so I suspect that I need to trim it a little. Not sure what the maximum recommended size is though.




Tailslide -> RE: style sheets (8/10/2005 16:38:10)

I've seen stylesheets that are thousands of lines long!!

You should try to keep it reasonable though!

Edit: just checked - most of mine are about 4-6kb each and I sometimes have more than one on a site.




womble -> RE: style sheets (8/10/2005 16:49:24)

quote:

I sometimes have more than one on a site.

Current one I have one main stylesheet with all the layout and styling and then about 12 other alternate ones that control text size and background colour that are only a couple of lines long and import the default stylesheet. Some people use separate stylesheets for the layout and styling also.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875