• Welcome! The TrekBBS is the number one place to chat about Star Trek with like-minded fans.
    If you are not already a member then please register an account and join in the discussion!

Most viable size for a CSS style sheet?

SeerSGB

Admiral
Admiral
Here's the problem: I'm working on a site that will have the same general layout across the site, but three of four color schemes depending on the subsection of the site.

Now my first instinct in a CSS stylesheet for each scheme, with (maybe) a master for the general layout. That gives me smaller files and might make bug-hunting easier. But I'm thinking 1 file for everything might also work; but I'm not sure I could keep it up 24k(ish) in size.

Opinions?
 
If you keep it all in one file you use fewer connections to load the page which will be quicker. Just document the sections clearly and you should be ok, unless you're talking about a 1mb file in which case then I'd split it.
 
If you are not already a member then please register an account and join in the discussion!

Sign up / Register


Back
Top