You are the man, AddSelector did the trick.
Excuse me my ignorance, but how do I make the .one and .two class also switch the background-color of the font inside that DIV?
You would need to create a second style rule that targets that text. I
am presuming that the text is in a p tag inside the parent DIV, right?
If so, does it have any inline style rules that need to be overridden?
If the text inside the DIV is unadorned, you can easily make rules
that look like this:
.one p { ...
.two p { ...
and whatever color or background attributes you add to them will apply
through the magic of the CSS cascade. In fact, as long as that text is
relatively unstyled, you may not need to even do this, it should just
work, because background attributes are inherited and pass-through un-
styled elements.
Walter
On Apr 26, 2011, at 2:12 PM, atelier wrote:
Walter
You are the man, AddSelector did the trick.
Excuse me my ignorance, but how do I make the .one and .two class
also switch the background-color of the font inside that DIV?
I needed two extra rules actually. Also for the a.
My p tag has background color, did not get overruled by the swich style rule. My H1 H2 etc tags do enherit the background.
Should I therefore add the background-color to my body tag, and remove it from my p tag? I’ll try that one.
Hi you coul also have used the advance-inline-styles mover action which allows you to do the same sort of thing including multiple classes and removing the inline style ect