I have the same rule which the first is in external .css file and the second is internal via …
In the ex
.img1 { background-image: url("....") !important; }
<– declared inside .css file and added via to the code
.img1 { background-image: url("....") !important; } <– declared inside the code via in the part.
It seems that the external + important overides the internal + important.
How come? and what can be done to fix it besides taking off the important! rule in the external css rule
Thanks
sounds like this is about the css selector-precedence, wich is basically:
p.classis better than just.class)!importantare preferred over the “normal” ones everytime!importantapply to the same element, the more specific one or the later one is usedto read more about this, take a look at http://www.vanseodesign.com/css/css-specificity-inheritance-cascaade/
later = further down in the came css-file or content of the css-file included further down in the same html-document.