Forum Moderators: not2easy

Message Too Old, No Replies

What's better one bigger style sheet or several smaller ones?

         

Fatbat

4:40 pm on Apr 2, 2005 (gmt 0)

10+ Year Member



I have a site that uses quite an extensive color coding system with lots of custom graphics for tabs and whatnot. What is better, one big style sheet that is used on all pages site wide or several smaller ones, one for each subsection?

Moby_Dim

5:16 pm on Apr 2, 2005 (gmt 0)

10+ Year Member



I think there is the only case to prefer multiple files : if your visitors fork on your index or other page (so, subsection A users do not visit subsection B, and vise versa). But may be this is not the case.

One file is the best choice I suppose. And do not forget that the file will be cached as a rule after the first opening.

eljaykay

5:21 am on Apr 3, 2005 (gmt 0)

10+ Year Member



Hi -
Moby-Dim's got it on this - one page to bind them...
just imagine a couple of months down the road when you've got to make changes and ask yourself which one you'd rather have to deal with!

2 cents,
El

Monique

10:43 am on Apr 3, 2005 (gmt 0)

10+ Year Member



Hi,

One style sheet of course.
But you can use something like title with /*title*/ to separate subsection in the style sheet.

Monique (sorry for bad english)

Fatbat

12:23 pm on Apr 3, 2005 (gmt 0)

10+ Year Member



Thank you for your input!

victor

1:52 pm on Apr 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I generally have several. Each page has two:
  • the one that is common to the whole site (ie same for all pages)
  • the one that contains the styles or adjustments to styles that are common to the section of the site.

    When I need to create a new site section, I cna just clone a existing section's CSS file and start tweaking that.

    It's simple and structured approach that works for me.

  • Robin_reala

    3:57 pm on Apr 3, 2005 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    I usually have 4!

    Layout
    Fonts & colours
    Print
    IE Hacks