• flickr
  • linkedin
  • twitter
  • rss
Override inline CSS styles

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:

Larry's a 30-something chap interested in travel, being a dork and changing the world via less boring training.

Leave a reply