Menu
Fundamentals
CSS !important
The nuclear option for overriding styles.
1Using !important
Adding !important to a property ignores specificity rules. Use carefully!
Example Code
p {
color: red !important;
}
/* This won't work even if it has an ID */
#my-p {
color: blue;
}Finished reading?
Mark this topic as complete to track progress.