css - Minimum height on vertically expandable div -


Is there a way to determine the minimum height for a single device, but is it still allowed to make it expandable?

For example, I want a div to get an accurate height of 300px when my page loads. However, if more content has been added to the device with Javascript, then I want to extend it after that.

If I specify the height and extends before the content div, then it adds the clip or the value of the scrollbar overflow.

If I do not specify the height, it only spreads to the content.

Thank you

The solution given here is that to fix it 6, courtesy

  selector {min-height: 300px; Height: Auto! Important; Height: 300px; }  

CSS property minimum height does this. Note that it does not work properly in IE6, although IE considers the 6 code to be height as the low-height , so that you have height To be used, the property in a style sheet that is loaded by IE6 only.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -