CSS Hacks Used for IE
CSS Hacks are needed to make the various versions of Internet Explorer render web pages the way they should be (i.e. as done by Firefox.) If you don’t have it already, please download and use Firefox.
Below is a list of ways to target various version of Internet Explorer; my thanks to Ed Eliot page on this topic.
| *property: value; | /* IE7 and below */ |
| _property: value; | /* IE6 and below */ |
| _prop\erty: value; | /* IE6 only - the “backslash hack” */ |
| _property/**/:/**/ value; | /* IE6 only - the “comments hack” */ |
| _property/**/: value; | /* IE5 only */ |
| _property:/**/ value; | /* IE5.5 only */ |
Hacks Used on This Site
*line-height: 165%; *margin-bottom: 2%; *padding-bottom: 2%; _padding-bottom:/**/ 2%; _padding-bottom/**/: 0%; _padding-bottom:/**/ 2%; _paddi\ng-bottom: 0%; _padding-top:/**/ 20px; _padd\ing-top: 0%; *left: 0%; /* override for IE */ *border-top: thin solid gray; *padding-top: 20px; *display:none; *margin-left: 7%; _mar\gin-bottom: 2%; *font-size: x-large; _font-size/**/: large; _font-size:/**/ large; _fo\nt-size: x-large; *margin-bottom: 2%; *font-size: large; _font-size/**/: medium; _font-size:/**/ medium; _fo\nt-size: large; *letter-spacing: .05em; _margin: 4% 4% 4% 6%; *margin-bottom: 0%; *margin-top: 2%; *padding-bottom: 2%; _width/**/: 32%; _width:/**/ 32%; _wid\th: 50%; _wid\th: 50%;