How to emulate for ie6?
+2
A:
to emulate max-width:
var maxWidth = 300;
if ( $('SELECTOR').width() > maxWidth ) $('SELECTOR').width(maxWidth);
the same can be applied for width, height, min and max with minor adjustments.
code_burgar
2009-08-18 18:34:19
A:
Just adding to codeburger's anwser that you might as well put this in an external JS file or JS block that's shown only to IE6 via conditional comments.
RwL
2009-08-18 18:36:45
if (jQuery.browser.msie) { if(parseInt(jQuery.browser.version) == 6) { etc
kmiyashiro
2009-08-18 18:47:40