Last active
January 2, 2016 03:49
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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