|
Posted by Carolyn Marenger on 11/23/72 11:43
BK wrote:
> 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.
Absolutely. However you might want to take it a step further, and set up a
base.css file with all the common and default setting you want to use, as
well as a red.css, orange.css, yellow.css, and so forth.
Then in your pages, you load the base.css first followed by the relevant
colour.css file for the page.
I think that would be easier to maintain in the long run - unless there are
only a couple of things that change in each category.
<snip>
> Thanks,
> Jeremy
You are welcome
Carolyn
--
Carolyn Marenger
Navigation:
[Reply to this message]
|