I am writing a CSS stylesheet to add a background image to a div identified by its class name as follows:
.scrollingResultsContainer
{
background-image: url(https://mdl0133/widget/Images/gradient.gif);
background-repeat: repeat-x;
background-attachment: fixed;
color:#FFFFFF;
}
This work fine except I have one particular situation where I do not want the image to appear in the scrollingResultsContainer
. How can I specify that the image should be applied except when the scrollingResultsContainer
happens to contain a div with a particular id?
Unfortunately I am unable to amend the markup to prevent this situation occurring. I was wondering if it can be done using css3 selectors.