Alternative way Using Expressions for IE Only in Cross-Browser Min Height.

Posted by Vishalneeraj-24503 under CSS 3 category on | Points: 40 | Views : 274
Write blow code as:-

height:expression(this.scrollHeight < 301 ? "300px" : "auto");

Sets the minimum height in IE to be 300px.But make sure that this.scrollHeight < 301 is 1 px greater than the minimum height that we want or we will get some strange results.

Comments or Responses

Login to post response