I have a pretty complex situation which I was hoping to resolve using only CSS. On my Wiki, a given template gives output where some parts are surrounded by <span class="popup">...</span>, and others are surrounded by <span class="notpopup">...</span>. What I would like is to sometimes show the "popup" parts and hide the "notpopup" parts, and other times do the opposite.
What I tried is this: When I want to show popup and hide notpopup, I surround the whole code with another <span class="popup">...</span>
and then my CSS has code like this:
CODE
span.notpopup span.popup {
display: none;
}
span.popup span.notpopup {
display: none;
}
display: none;
}
span.popup span.notpopup {
display: none;
}
But this doesn't work. I'm guessing that I can't have multiple class selectors (i.e. span span.popup might work, but span.notpopup span.popup doesn't)... Does anyone have any idea how I could make this work, or another idea of how to tackle the problem?
(I can change some things in the template's output, but not everything, because the output comes from an extension.)
Thanks,
Skylark
