CSS expression crashes IE6
Since IE 6 does not have a “min-width” ccss attribute, I sometimes emulate it, using CSS expressions. For example:
width:expression(document.body.clientWidth Tom-Lee.blogspot.com
In the article a complex and no doubt highly precise answer to the issue is given: a very long javascript expression.
I found though that you can also resolve the issue by simply making the width you are testing for slightly larger than the minimum width you are trying to set:
for more information.
The expression that was crashing was:
width:expression(document.body.clientWidth And the one that worked was:width:expression(document.body.clientWidth
Thanks for this. I just had this exact problem and your tweak to account for margins and padding fixed it. My daily dose of MS frustration fixed!
Perfect! Thanks for this, problem solved.
Great info. IE6 has some crazy bugs 🙂
—–