Skip to content

Challenge Override All Other Styles by using Important

SaintPeter edited this page · 1 revision
Clone this wiki locally

In many situations, you will use CSS libraries. These may accidentally override your own CSS. So when you absolutely need to be sure that an element has specific CSS, you can use !important.

An example of how to do this is: color: red !important; This will make sure that we use the wanted property regardless of other overrides.

Something went wrong with that request. Please try again.