greydient where colours meet

I read some posts, and found the best way to make a compatible css-file for both IE 6+7 and Firefox.Safari and Firefox on OSX reacts (almost) similar to Firefox on Windows.

It’s quite simple, and I’ve corrected IE 6 optimized sites in a matter of minutes.

This is the trick:

margin: 10px;
.margin: 10px; /* read by both IE 6 and 7 */
_margin: 10px; /* read by IE 6 only */

That’s basically it.

NOTE: Not W3C compliant stylesheet, but it will look great :)


Subscribe to comments Comment | Trackback |
Post Tags:

Browse Timeline


Comments ( 1 Comment )

You might consider splitting your .css files if you want W3C compliant styling.

mortenn added these pithy words on Mar 08 07 at 1:59 pm

Add a Comment





XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*