Stretch Child Div Height to Fit Parent 100%

css

CSS3 is amazing – and thanks to this, we can achieve 100% child height on a div. To do so, on the child div, apply the following:

align-items: stretch;

The parent should have the following style:

display:flex;

It’s that straightforward!

Leave a Reply

Your email address will not be published. Required fields are marked *