!important

The !important Rule

Example

!important overrides normal specificity:

<!DOCTYPE html>
<html>
<head>
  <title>Page Title</title>
  <style>
    #box { background: #1971c2; }
    div { background: tomato !important; }
    #box { color: white; padding: 10px; font-family: Arial; }
  </style>
</head>
<body>

<div id="box">!important beats the ID selector</div>

</body>
</html>

Result

Note: Avoid !important in your own styles: it starts a war where the only way to override it is another !important. Fix the selector instead. Acceptable uses: utility classes and overriding third-party CSS you cannot edit.