Forum Moderators: not2easy

Message Too Old, No Replies

IE6 broken floats, to hack or replace?

Internet Explorer 6, hack?, replace?, floats, width, height

         

likes2burn

10:15 pm on Nov 13, 2009 (gmt 0)

10+ Year Member



Hiya,

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!

D_Blackwell

11:13 pm on Nov 13, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome likes2burn.

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.