Thanks all for your lightning quick replies. I had tried some variation
of these, but must have got it wrong somewhere.
Much appreciated,
Sarah
> G'day
>
> > Just wondering whether there was a way to include different body
> > background colors (for different pages) within the same css file.
> > For example #fff for page1.html, #ffc for page2.html etc.
>
> If every page has to have a different background colour, you
> could put an ID on the body element, then in your css:
>
> body#homepage { background-color: #fff }
> body#about-us { background-color; #ffc }
> etc
>
> with <body id="homepage">
> and <body id="about-us">
> etc
>
> If there's a few different backgrounds but they are used on a
> number of pages, use a class instead of id.
>
> body.section1 { background-color: #ffc }
> body.section2 { background-color: #fff }
> etc
>
> with <body class="section1">
> and <body class="section2">
> etc
>
> Regards
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************