Return to Snippet

Revision: 49411
at July 21, 2011 20:14 by alexilin


Updated Code
<!--[if lte IE 6]>  
<script type="text/javascript">  
window.attachEvent('onload', mmwidth);  
window.attachEvent('onresize', mmwidth);  
function mmwidth(){  
document.getElementById('somediv').style.width = ((document.documentElement.clientWidth ||  
document.body.clientWidth) < 1000) ? '1000px' :  
((document.body.clientWidth > 1000) ? 'auto' : 'auto');  
};  
</script>  
<![endif]-->

Revision: 49410
at July 21, 2011 20:13 by alexilin


Initial Code
<!--[if lte IE 6]>  
<script type="text/javascript">  
window.attachEvent('onload', mmwidth);  
window.attachEvent('onresize', mmwidth);  
function mmwidth(){  
document.getElementById('somediv').style.width = ((document.documentElement.clientWidth ||  
document.body.clientWidth) < 990) ? '190px' :  
((document.body.clientWidth > 1280) ? '1000px' : '1000px');  
};  
</script>  
<![endif]-->

Initial URL

                                

Initial Description

                                

Initial Title
Min and max width in IE6

Initial Tags
ie

Initial Language
JavaScript