Thanks, David. That is absolutely what I wanted to do and it solves the
problem completely.
Peg
On 11/21/06, David Hucklesby <[EMAIL PROTECTED]> wrote:
>
> On Tue, 21 Nov 2006 17:12:00 -0800, Peggy Coats wrote:
> > I have a background image in my #container div that I would like to
> > change on different pages. Is there some way to do this besides
> creating
> > a separate class for each page (e.g., #container-about, #container-
> > contact, etc.)?
> >
> //////////////////////////////////////////////////////////////
>
> I'm not sure I understand you, but I _think_ you want to retain just one
> ID
> for the "container" DIV throughout the site? You could add a class as well
> as an ID and target that. Alternative put a class on the BODY tag to
> indicate the background image?
>
> Here's an example of what you might do in the latter case:
>
> body.azerbaijan #container {
> background-image: url(../images/azerbaijan.jpg);
> }
> body.armenia #container {
> background-image: url(../images/armenia.jpg);
> }
> body.georgia #container {
> background-image: url(../images/georgia.jpg);
> }
>
> With a class added instead to the "container" DIV, that would become:
>
> #container.azerbaijan {background-image: ... etc.
>
> Please repost with more details if I got this wrong.
>
> Cordially,
> David
> --
> www.hucklesby.com
>
>
>
>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/