concept min - height in category css

appears as: min-height, min-height
CSS in Depth

This is an excerpt from Manning's book CSS in Depth.

Suppose you want to place your hero image behind a larger paragraph of text, and you’re concerned about it overflowing the container. Instead of setting an explicit height, you can specify a minimum height with min-height. This means the element will be at least as high as you specify, and if the content doesn’t fit, the browser will allow the element to grow naturally to prevent overflow.

Figure 3.13 shows three elements. The element on the left has no min-height, so its height is determined naturally, while each of the other two has a min-height of 3 em. The element in the middle would have a natural height shorter than that, but the min-height value has brought it to a height of 3 em. The element on the right has enough content that it has exceeded 3 em, and the container has grown naturally to contain the content.