You are here: Re: Question in regards to a defining a css class « HTML « IT news, forums, messages
Re: Question in regards to a defining a css class

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация