R.Besseling
12-12-2006, 10:26 AM
Hi all,
I am developing a webcommunity and I have a problem with the minimum height in Internet Explorer 6. As far as I know there are two options to set a minimum height to a webpage:
min-height CSS element
JavaScript expression: height: expression(document.body.clientHeight < 420? "420px": "auto" );
The 'min-height' CSS element doesn't work in IE6, so that leaves us with the JavaScript expression. I am already using an other height expression in my CSS code to make the main DIV as heigh as the screen on IE6 without using percentages:
height: expression((parseInt( document.documentElement.clientHeight ))+'px');
Does anyone know how to combine those two expressions, so that my webpage is maximum screen height and is configured with a minimum height? Or does anyone knows an other solution?
Thanks!
P.S. I don't know where this topic belongs, JavaScript or HTML/CSS.
I am developing a webcommunity and I have a problem with the minimum height in Internet Explorer 6. As far as I know there are two options to set a minimum height to a webpage:
min-height CSS element
JavaScript expression: height: expression(document.body.clientHeight < 420? "420px": "auto" );
The 'min-height' CSS element doesn't work in IE6, so that leaves us with the JavaScript expression. I am already using an other height expression in my CSS code to make the main DIV as heigh as the screen on IE6 without using percentages:
height: expression((parseInt( document.documentElement.clientHeight ))+'px');
Does anyone know how to combine those two expressions, so that my webpage is maximum screen height and is configured with a minimum height? Or does anyone knows an other solution?
Thanks!
P.S. I don't know where this topic belongs, JavaScript or HTML/CSS.