views:

1159

answers:

2

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
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
if (jQuery.browser.msie) { if(parseInt(jQuery.browser.version) == 6) { etc
kmiyashiro