CSS CSS Flexbox Layout Building a Layout with Flexbox Creating a Sticky Footer with Flexbox


Can I use "height" property instead of "min-height" property? As I check the result , it's same here . Then where it matters?

1 Answer

Steven Parker
Steven Parker
167,746 Points

Those properties will work the same when the contents fit within the value specified.

The difference will be seen when the contents are too large to fit in the value. In that case the item with the "min-height" property will expand but the one where "height" is set will either overflow or be clipped, depending on the setting of the container.

Oh ....got this Thanks Steven Parker :)