|
Posted by Adrienne Boswell on 11/23/80 11:43
Gazing into my crystal ball I observed "nice.guy.nige"
<nigel_moss@deadspam.com> writing in
news:44287230$0$16470$892e7fe2@authen.yellow.readfreenews.net:
>> My question is this, is it permissable to define a class in the css
>> for the individual page groupings.
>>
> [...]
>> body.red { background-image: url("backgrounds/redrey.jpg")}
> [...]
>
> Yes. You can define a background for each section of your site as such.
> In the HTML for each such page, use <body class="red"> (etc)
>
> I would, however, not recommend using terms such as "red", "green",
> "blue" to define your pages. What happens when you decide that the
> contact page should be yellow instead of orange? And the Links page
> should be blue instead of yellow??? You are entering a "World Of
> Pain[tm]" by defining your css code by presentation. Instead, define
> them by section as follows;
>
> body.links {
> background-image: url("backgrounds/bluegrey.jpg");
> }
>
> body.contact {
> background-image: url("backgrounds/yellowgrey.jpg");
> }
>
I think in this instance, using a color name is probably just the ticket.
A site I am developing uses liturgical colors: white, red, violet, rose,
and green. I have a main stylesheet that has the non-color properties,
size, font, position, etc., and then the color stylesheets depending on the
day's liturgical color. If the liturical color of the day is violet, then
the violet stylesheet is applied that uses various shades of purple.
--
Adrienne Boswell
Please respond to the group so others can share
Navigation:
[Reply to this message]
|