Override inline CSS styles

This handy chap has simply showed the light of CSS overrides, nice and easy really. Slap important over what inline styles you want overridden!

<div style="background: red;">
    The inline styles for this div should make it red.
</div>

div[style] {
   background: yellow !important;
}

src:
http://css-tricks.com/2708-override-inline-styles-with-css/

Tech Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑