Write blow code as:-
div
{
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.