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:static; /*Hack for IE 7*/
 _position:static; /*Hack for IE 6*/


It works like a Charm.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s