I have a <div>
that is set to a certain height. Is there a CSS property that allows the height to be increased when there is overflow?
views:
24answers:
1
+1
A:
You could set min-height instead of height, but this is not supported in older browsers.
Philippe Leybaert
2010-05-31 10:35:49
If you need support for IE6 you can use height property for it, it behaves same s min-height does in other more modern browsers.
rebus
2010-05-31 10:39:14
By 'older browsers' he means IE. That's the only browser that did not support it till IE8.
Rob
2010-05-31 10:40:08
@Pieter, both 'height' and 'min-height' are standard CSS.
Rob
2010-05-31 10:40:51
Oh okay. I guess this answer gets the points then!
Pieter
2010-05-31 10:41:20