How to set the minimum height of the <div> window in Internet Explorer 8?
The following CSS code that uses the min-height property applied to the <div> does not work correctly in Internet Explorer 8. An example is given below.
.myDiv { min-height:200px; height:auto !important; height:200px; } How to set the minimum height of the <div> window in a way that works in Internet Explorer 8?
+4
1 answer
Your code should work as it is maintained at risk, like min-height .
You can try adding the following property to your style
<!--[if IE]> <style type="text/css"> .myDiv { height:expression(this.scrollHeight < 200 ? "200px" : "auto"); } </style> <![endif]--> If it still does not work, you probably have some problems with other elements and the proper installation of your .myDiv.
+2