tags:

views:

24

answers:

1

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?

+1  A: 

You could set min-height instead of height, but this is not supported in older browsers.

Philippe Leybaert
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
By 'older browsers' he means IE. That's the only browser that did not support it till IE8.
Rob
@Pieter, both 'height' and 'min-height' are standard CSS.
Rob
Oh okay. I guess this answer gets the points then!
Pieter