Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Combining stylesheets (or not)

  • Subject: Re: Combining stylesheets (or not)
  • From: Roy Schestowitz <newsgroups@schestowitz.com>
  • Date: Fri, 29 Apr 2005 10:18:00 +0100
  • Newsgroups: alt.html
  • References: <dhf7dowi49cr$.dlg@ID-104726.news.individual.net>
  • User-agent: KNode/0.7.2
Jim Scott wrote:

> I have recently converted my site to using stylesheets.
> I use five. One is concerned with buttons and refers to most pages. The
> others relate to table layout. The main one of these refers to every page
> and the others, when I need a different size or border.
> Is there any virtue in combining them in to one master stylesheet?
> If the answer is yes, is it as easy as just putting all the bits together?

===
Pros of separating:

Fragmented -> Easier to change locally, without affecting many other
elements
Fragmented -> Can be difficult to manage
Where only few sheets are used, bandwidth is lower

===
Cons of separating:

More files -> slower to download
More files -> scattered code
Alternative stylesheets might be hard to manage


I suggest you carefully think /how/ stylesheets should be separated. It will 
be tedious to change in the future. I sometimes embed CSS in the HTML files
to avoid the "change in one affects another".

Roy

-- 
Roy S. Schestowitz
http://Schestowitz.com

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index