...

View Full Version : max-height and IE 6+



wac
01-07-2004, 03: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).

#objsetlist
{
width:250pt ;
max-height:150pt ;
overflow:auto;
border:thin solid black ;
}

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

me'
01-07-2004, 06: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)

wac
01-07-2004, 07: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)???



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum