Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS, Internet Explorer and the magic !ie

I came across this strange bit of CSS tonight...

display: inline !ie;

Now I've created and seen a lot of CSS and I have never seen this before or its magical powers.

You can add "!ie" at the end of any rule and it will only be applied by M$ Internet Explorer 6 & 7

Can anyone shed any light on this WTF?

like image 529
Kirk Bentley Avatar asked Mar 17 '10 13:03

Kirk Bentley


1 Answers

Internet Explorer 7 and below have a few quirks related to the !important declaration, which is supposed to give a value higher importance than normal.[3] IE7 and earlier accept virtually any string in place of important and process the value normally, while other browsers will ignore it.

Taken from !Important Quirks section in CSS Filter - Wikipedia

like image 127
Anthony Forloney Avatar answered Sep 23 '22 11:09

Anthony Forloney