|
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]
|