View Full Version : max-height and IE 6+

01-07-2004, 04:35 PM
Ok, I've seen many posts which suggest using max-width/height to accomplish 'stuff', but that doesn't seem to be working for me. Does IE 6+ actually support the style max-height???
I've got a DIV that I use to implement a combobox tree like the address bar on windows explorer. I only want it to grow to a max height of 150pt, and and be scrollable. the div has an id='objsetlist' so I coded the style as follows, but it grows indefinitely (or at least past 150pt).

width:250pt ;
max-height:150pt ;
border:thin solid black ;

01-07-2004, 04:47 PM
No, iew does not, in difference to modern browsers. You need to work around it somehow.

01-07-2004, 07:55 PM
A couple of useful hacks:
Underscore hack (http://www.pixy.cz/blogg/clanky/cssunderscorehack/) (Pixy)
Min-height hack (http://www.pixy.cz/blogg/clanky/css-minheight-hack.html) (Pixy)

01-07-2004, 08:11 PM
argh!:confused: Of course this is the opposite of what I want (max-height, not min-height) and I'm clearly not sharp enough to see how it would apply. Should I create an outerbox whose height is fixed while setting the innerbox with an auto height (and the border)???