Click the "Try it" button to alert the max-height of the DIV element:

This DIV element does not have a pre-defined height.

The height of this DIV element depends on its content.

But the DIV element has a max-height, and will never exceed 100 pixels.