I’ve come to learn that IE6 is the devil when it comes to CSS and web standards, but I had no idea it would execute JavaScript inside of a CSS file. I really enjoy min-width and max-width, and have always found it a pain that IE6 does not support it. I’m not sure JavaScript inside of CSS is the answer I’m looking for, but then again, it’s just about as good as any of the other IE hacks I’ve learned to use.
CSS3 should provide the ability to automagically uninstall IE6 and replace it with Firefox—that’s the real solution to the problem.
01
Luke on Mon Jun 04 at 11:56PM
Now that would be heavenly. I wonder how many browsers on the net are still IE6: when can we disregard and tag onto it’s slightly more friendly descendant.
Javascript inside a CSS file? Well I knew about using PHP and CSS, but this is a new one.
02
Nick on Tue Jun 05 at 02:32AM
Microsoft makes trash.
03
Ryan on Tue Jun 05 at 04:20AM
I’m looking forward to the day when I read “less than 5% of internet users are using IE6.” Until then, a lot of what I have to do must work in IE6, which is very frustrating.
Unfortunately, (according to this) IE6 was at 37.3% for April 2007. The good news is it was at 42.3% in January 2007, but the bad news is it’s still at 37.3%. Even IE5 is still being used (1.7%).
On the positive side, Firefox has increased nearly every month for the last couple of years.
04
Emil Stenström on Wed Jun 06 at 10:58AM
Ryan: Thanks for the mentioning. IE6 is generally a pain in the ass, but luckily there’s almost always ways to solve the problems with javascript. There’s even a javascript called IE7 that looks for common IE6 bugs and fixes them. Might be worth a look :)
05
Ryan on Wed Jun 06 at 08:05PM
Come to think of it, I believe I’ve heard of that. I usually just use conditional comments to load IE6 and IE7 CSS hacks. I was surprised at the amount of CSS inconsistencies in IE7, but it is a ton better than its predecessor.
06
Ryan on Fri Jun 08 at 12:20PM
For completeness sake, here’s a link to the IE7 JS library that makes IE work with standards.