Hi,
Is it possible to 'cancel' a style declaration using CSS? I realise the question is vague, so here's an example:
I have a CSS file containing the following rules (obviously this isn't my actual problem!)
and some HTML that looks like this:Code CSS:p { color: white } span { color: red }
Code HTML4Strict:<p>I am in white <span>but I am in red</span></p>
I am not allowed to change the CSS file as it is locked down by a software vendor, so all I can do is embed style rules in the page. What I want to do is cancel the span rule so that the text now picks up the paragraph rule instead and all the text is white. The thing is, the supplied CSS file might be changed by the vendor and the paragraph colour declaration could change to green instead of white, so I don't just want to put
in my embedded style.Code CSS:span {color: white; }
Is this sort of thing possible?
Many thanks,
Andrew


Reply With Quote




Bookmarks