how to apply important in css code example

Example 1: css important

#content ul li {
   color : red;
}

ul li {
   color : blue !important; /* overrides the red color */
}

Example 2: css font size important

.ace_editor { 
  font-size: 14px!important; 
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono'; }

Example 3: important css

body{
font-family: verdana, arial !important;
}

Example 4: css !important

min-width: 100% !important;

Example 5: important css

Hey! Using !important in your code means that you've done something wrong.
Try avoiding it as much as possible.

Tags:

Css Example