Forum Moderators: not2easy
I'm a student of all of this, and I've recently made a web page which IE6 is destroying the floats of. I did a few searches in this forum, and I wanted to know:
Is it a better practice to hack up your CSS and made IE6 float correctly, or is it better to use JavaScript to detect IE6 and import/replace the offending code?
Because I'm rather happy that the page has satisfied XHTML strict. If I do hack it, will it fail these test?
Thank you for your time!
the page has satisfied XHTML strict.
Neither. I couldn't justify hacking CSS for the antique IE6. I also would not hack in JS.
Better are IE conditional comments that ONLY IE6 will render. All other browsers and IE versions will ignore the comments used to hack-fix IE6 in the cleanest possible fashion.
IE 'Developer' Center [msdn.microsoft.com]
Search - ie conditional comments - for many resources.