Forum Moderators: not2easy
This headline color will correspond to the background color of the navigational button for that page. The Widget navbar button background would be green, while Contact would be blue, in this example.
Should I do this by applying two stylesheets for each page: one to define the layout, and one to define the color for the page? That way, I could swap out one color for another. Would that be better than having one stylesheet where I just added extra classes for the extra colors?
Of course, there are other extra-coding pitfalls with having each navbar button background being a different color. Short of a template system, I'm guessing there are no easy code-saving fixes for this, either.
Ideas?
#widgets h1 { color: green; }
#contact h1 { color: blue; }
#biography h1 { color: red; }
#header {
size, shape, font-family, etc }
#content {
size, shape, font-family, etc }
#footer {
size, shape, font-family, etc }
then
.header {color, background, etc}
.content {color, background, etc}
.footer {color, background, etc}
End up with
<div id="header" class="header">content</div>
and so on.
Marshall