Skip to content

Instantly share code, notes, and snippets.

@townivan
Last active January 2, 2016 03:49
Show Gist options
  • Select an option

  • Save townivan/8246817 to your computer and use it in GitHub Desktop.

Select an option

Save townivan/8246817 to your computer and use it in GitHub Desktop.
Override Inline Styles with CSS Usually it goes the other way around, but you can override inline CSS with CSS elsewhere. Source: http://css-tricks.com/override-inline-styles-with-css/
HTML:
<div style="background: red;">
The inline styles for this div should make it red.
</div>
CSS:
div[style] {
background: yellow !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment