Websites | Photography | Video Editing | 3D Animations

From the Blog

Jun
11

Internet explorer CSS hacks

Posted by Paul Costan on June 11th, 2012 at 10:22 am

Hi All, below are examples of how to target version of IE 6,7 and 8.


body {
border: 1px solid red; /* For all browsers */
border: 2px solid yellow\9; /* IE8 - '\9' */
*border: 3px solid blue; /* IE7 - '*' */
_border: 4px solid black; /* IE6 - '_'*/
}