I am maintaining a site that has been created using Drupal. The site has different backgrounds on a number of pages. These are selected in the css as follows
I have been asked to add some pages under the lolliland parent and also under the lollifactory parent.
The pages under the lolliland branch need to have the same background as the lolliland parent and those under the lollifactory parent need to have the same background as the lollifactory parent.
How can I target these child pages so that I can set their backgrounds. Everything I am trying is not working and I am stuck with the default content background.
is drupal inserting the page classes in the BODY tag?.. check your source after it’s been output. it maybe failing to do place the tag. Your rules are right under the following assumption :
<body class=“page-lolliland”>… <div id=“content”>
also the bg images will display in the<div id=“content”> not the bg of the page… but I think that’s what you want , right?
If you don’t see any bg at all AND your original page had no bg to begin with, it is possible that your Content div is not auto clearing. So the bg is there, you just aren’t seeing it because the div has collapse. IF this is the case add overflow:hidden; to your Content{} rule.