[Solved] modify background according to section
Posted: Sun Feb 20, 2011 5:16 pm
Hello,
I have a website with several sections (africa, alaska, holiday....). Every section contain pages using different different templates. The common part of the pages inside each sections is the body and header background image. My question is:
Is there a way to have automatically different background images for each sections ?
In other word, I would like that (without any other intervention of the administrator), when a page is created inside section (Alaska) It will get the Alaska image as background for the header and theAlaska_bg image as background for the </__body> dynamically.
Here is my actual CSS:
div#header h1 a {
background: url("Assets/smallBanner.jpg") no-repeat scroll 0 0 transparent;
}
body {
background-color: #9D743E;
background-image: url("Assets/dirtywm2.jpg");
}
I have a website with several sections (africa, alaska, holiday....). Every section contain pages using different different templates. The common part of the pages inside each sections is the body and header background image. My question is:
Is there a way to have automatically different background images for each sections ?
In other word, I would like that (without any other intervention of the administrator), when a page is created inside section (Alaska) It will get the Alaska image as background for the header and theAlaska_bg image as background for the </__body> dynamically.
Here is my actual CSS:
div#header h1 a {
background: url("Assets/smallBanner.jpg") no-repeat scroll 0 0 transparent;
}
body {
background-color: #9D743E;
background-image: url("Assets/dirtywm2.jpg");
}