Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there anything more important than !important in css?

Tags:

css

wordpress

It seems like my wordpress theme is adding a font color by default with !important condition and it appears as inline style. It targets not exactly what I need, so is there anything I can do about it? I already tried !important !important :)

like image 862
funguy Avatar asked Aug 05 '11 13:08

funguy


1 Answers

The only thing that could override an inline style with !important is a child element's style:

<div style='color: red ! important'>
     <span style='color: green'>This is green.</span>
</div>
like image 64
Mark Cidade Avatar answered Sep 18 '22 13:09

Mark Cidade