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

Posted by BK on 11/21/46 11:43

I am trying to get my webpage fully dependant on the CSS for layout. I
have several pages on my site. Here is the layout:

1. The site uses the same heading/paragraph structure and physical
layout styles;
2. Each group of similar pages (e.g. picture galleries) has the same
icons in a different color pallate.
3. The backgrounds are all laid out with an inline style in the head of
each page like this:

<style type="text/css">
<!--
body { background-image: url("backgrounds/greengrey.jpg")}
-->
</style>

My question is this, is it permissable to define a class in the css for
the individual page groupings.

My idea would be this (in the css):

body {font-family:"lucida sans unicode","arial","helvetica",sans-serif;
font-style:normal;
font-weight:normal;
font-size:small;
background-attachment: fixed }

body.red { background-image: url("backgrounds/redrey.jpg")}
body.orange { background-image: url("backgrounds/redrey.jpg")}
body.yellow { background-image: url("backgrounds/redrey.jpg")}
body.green { background-image: url("backgrounds/redrey.jpg")}
body.blue { background-image: url("backgrounds/redrey.jpg")}

etc...

Thanks,
Jeremy

 

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

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