Rick Faircloth wrote:
> Hi, all.
>
> I'd like to know your thoughts on including separate
> stylesheets for individual pages.
>
> I've realized at the start of a pretty large site, including
> Internet and Intranet sections, that my stylesheet could grow
> very large and even finding sections of styles for particular
> pages could be a cumbersome task.
>
> What I'm considering is having one main stylesheet, then
> having supplemental stylesheet for the various pages I will create.
> E.g., for a particular page, I would have main.css, plus index.css.
> For announcements, I would have main.css, plus announcements.css.
>
> I would be avoiding loading a lot of irrelevant styles for a particular
> page and make finding style references much easier, too.
>
> It seems like the best way to go, but I want to make sure I'm not
> creating a problem with the technique with which I'm unaware.
>
> I can easily specify which particular page's stylesheet is called
> by using coldfusion and the cgi.script_name variable.
>
> Thoughts?
>
> Thanks,
>
> Rick
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED]
>   
Rick,

I think this is an allright solution. However, you might end up 
repeating yourself if you are not careful in delegating styles to the 
main sheet.  As long as you can stay vigilant on pushing shared classes 
to the shared sheets, you'll be fine.  Otherwise you can end up with 
spaghetti styles with the same class/id defined 3 different ways on 3 
different sheets.  Personally I divide my sheets by section.  So for a 
CMS all the styles related to each type of content are on a single 
sheet.  If anything ends up on more than one sheet it goes into the 
common sheet.

-Mark


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

Reply via email to