Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What browsers support "!important"?

Which browsers support the CSS !important directive, and what are the various quirks amongst the different browsers that do support it?

like image 867
Daniel Avatar asked Aug 25 '09 18:08

Daniel


People also ask

What browsers should we support?

Recommended browsersGoogle Chrome (latest version) — Windows, Mac OS X, iOS, Android. Apple Safari (latest version) — Mac OS X, iOS. Microsoft Internet Explorer 11+ — Windows. Microsoft Edge (latest version) — Windows.

Does Safari support CSS?

CSS all property is Fully Supported on Safari 15, which means that any user who'd be accessing your page through Safari 15 can see it perfectly.


2 Answers

Excellent browser support.

It was part of the CSS1 spec and has been around forever, and was always easy enough to implement that browsers appear to have gotten it right on the first try.

At the very least (from personal experience) IE5.5+, Firefox 1+, Safari 3+, Chrome 1+.

Pretty much supported by every browser that supports CSS (which is every browser you care about).

like image 188
Kenan Banks Avatar answered Sep 20 '22 23:09

Kenan Banks


According to Wiki, IE7, FireFox 1.0, Safari 1.0, Opera 7, and Chrome fully support !important. IE6 supports it, but it does have a bug. If you do this, color will be red:

h1 {   color: green !important;   color: red; } 
like image 36
jimyi Avatar answered Sep 22 '22 23:09

jimyi