The title says most of it. Is there a CSS keyword which overrides !important
at one higher level or is there some feature like this planned in any newer CSS spec?
Of course, I know that !important
is a bit likely to be used by noobs and that in many cases it is not the best way to go as stylesheets may really suck if badly written. However, sometimes it's useful and even needed.
The strongest style in CSS I can think of is an inline style with !important
like this:
<span id="bluebeaver" style="color: red !important;">I am a happy blue beaver</span>
Now let's assume that I cannot edit the HTML and must modify the style from an external stylesheet.
It would be really great to have something like:
#bluebeaver {
color: blue !important 2;
}
If they had levels for it like for instance with z-index
.
Is there any solution to this or anything planned with newer CSS specifications? So far I did not find anything.
Can you show a CSS solution to override an !important
inline style or is there definitely no possibility?
!important
key word. – Zn!important
. – Boloney