css use important code example
Example 1: css important
#content ul li {
color : red;
}
ul li {
color : blue !important; /* overrides the red color */
}
Example 2: important css
body{
font-family: verdana, arial !important;
}
Example 3: !important css
div {
width: 100% !important;
}
Example 4: explain !important css
explain !important css
Example 5: important css
Hey! Using !important in your code means that you've done something wrong.
Try avoiding it as much as possible.