CSS Hack for IE 6 and IE 7

As Web Developer you always struggle when it comes to support IE 7 and below. The ratio of time spent to fix bugs for IE > 7 and the people seeing your website in those browsers is ridiculous.
I usually ask myself if I want people who use those Browser visit my website but some people have no choice if, for example your employer equips you with computers.

Today I found a neat trick to write CSS for those Browsers.

Just add a ‘*’ infront of your CSS property for IE 7 and a  ‘_ ‘for IE 6.

 

position:absolute;
 *position:static; /*Hack for IE 7*/
 _position:static; /*Hack for IE 6*/

 

It works like a Charm.


Leave a comment