permalink

0

IE7 and CSS

It took me quite sometime to fix few things in IE7. Earlier I used to use * html for conditional CSS in IE. But unfortunately it does not work in IE7.

But for IE7, you can use conditional comments for your CSS fixes specific to IE7.

You can use following code in the header of your html file:

<!–[if IE 7]><link rel=”stylesheet” type=”text/css” href=”/styles_ie7.css” /><![endif]–>

In this specific file, you have to put only IE7 specific id and class definitions. IE7 will automatically overwrite the old definitions with new one.

More info on it here

Leave a Reply

Required fields are marked *.


This site uses Akismet to reduce spam. Learn how your comment data is processed.