Anyone have a good way I can emulate the max-height property to render in Internet Explorer (and Netscape)? I've got some data pulled from database that I want to display in a div. I want the height of the div to be no more than let's say 150px, but if the amount of data is small, I want the div to shrink to whatever height is necessary.
Set the line height (in CSS) to 15 px then write a maximum of 10 lines of text. Height of wrapper DIV will vary depending on how many lines of text you write, but neer more than 150-odd pixels. Depends on the ability of CSS to accurate reproduce line height, cross-browser though.