Forum Moderators: not2easy
It's easier for me to use several linked styles in the head section - I can see at a glance where the styles are coming from, and it allows for easy style "modules" for different sections or types of pages, in the manner Nick mentioned.
What confuses me is that I'd really like to use one template for all of these sections, and I don't see how I can switch colors if the styles are already specified.
I can clearly see how this can be done with different templates for each section, but it doesn't sound like that's what you guys are doing. Could you explain more?
Thanks - Craig
What you're wanting to do is quite simple. It relies on the the cascade [w3.org] of your stylesheets.
For example: Say you have a menu that's contained in a div like this:
[pre]
<div id="menu">
Menu stuff here...
</div>[/pre]
[pre]
#menu {
background-color: #000000;
color: #FFFFFF;
}[/pre]
[pre]
<link rel="stylesheet" type="text/css"
href="normalstyles.css" />
<style type="text/css">
@import url(override.css);
</style>[/pre]
[pre]
#menu {
background-color: #FFFFFF;
color: #000000;
}[/pre] With me? ;)
Nick