I've got 5k lines of CSS for Firefox, Opera and sometimes IE 8. After all that, account told me, that it has to work properly under IE 7. How can I do it, without rewriting 40% of code?
+3
A:
After going through and fixing the glaringly obvious problems, try this: http://code.google.com/p/ie7-js/
It isn't a magic bullet, and it may cause problems. Personally, I just accept that ie-izing a site will take time, and factor that time into reports I am required to make to bosses.
If you start with IE8 and get your site working in that, it'll be easier to go down to IE7, which will make it easier to go down to IE6. Note that IE8 has some debugging tools that don't completely suck, be thankful for those.
http://websitetips.com/css/solutions/
http://www.webcredible.co.uk/user-friendly-resources/css/internet-explorer.shtml
http://css-tricks.com/ie-css-bugs-thatll-get-you-every-time/
Michael Robinson
2010-08-15 01:08:22
Is it safe to use this with jQuery on the same site? Also, +1 for "just accept that ie-izing a site will take time" :)
cji
2010-08-15 01:11:36
I don't know, we use Prototype. Our site is so JS heavy that I just bit the bullet and went through and fixed all IE CSS problems we could find instead of throwing more JS onto the pile.
Michael Robinson
2010-08-15 01:12:44
Actually the same developer tool (IE developer toolbar) are also available for older version, with approximately similar capabilities. jQuery should also be safe to use. Microsoft also claims IE8 to be fully CSS 2.1 compliant, so it won't have the same bugs as IE7.
Yi Jiang
2010-08-15 01:29:40
Microsoft makes a lot of claims.
Michael Robinson
2010-08-15 01:30:37
Well yes, but as far as I'm aware there's only one very weird `noscript` bug, but other than that IE8 is clear. http://www.positioniseverything.net/explorer/ie8stylednoscriptbug/index.html
Yi Jiang
2010-08-15 02:09:23