Overwriting specificity in CSS
To overwrite specificity in your css style sheet you can declare it as follows:
h1 {background: green !important;}
The important above overwrites the specificity in the entire style sheet. It can be a good debugging tool to figure out where else we have a style declared that conflicts with this one.
Make sure not to leave the !important in there in the production mode.
0 comments