At 05:37 AM 1/21/2006, Jesse Skinner wrote:
>Bill Moseley wrote:
> > I just looking for a few tips on how to organize CSS files.
>
>Of course there's no one-right-way to do this, but here's what I would
>suggest. Have one master CSS file, say style.css, that every page
>references. Inside the style.css, put everything that is common across
>all brandings. You may even want to put the default branding in this
>file. Then, at the end of the file, put:
>
>@include "green.css";

You have just violated the CSS Specification, and compliant browsers 
are therefore free to ignore green.css. [1]  Included CSS files must 
come at the beginning of a stylesheet, before any property/value 
declarations, not at the end.  If you import *all* of your styles, as 
someone else suggested, then this method could work.  However, if you 
have any direct declarations in the stylesheet, the import statement 
must precede them.

1. <http://www.w3.org/TR/CSS21/syndata.html#at-rules>

HTH,


-Adam Kuehn 

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to