skip to Main Content

Html – Why does the picture extend beyond the block?

I specified max-height: 400px for the whole grid. But child elements are out of bounds, although they should be stretched by height relative to the size of the parent. demo <div class="grid"> <div class="grid__col"> <img src="https://biggardenfurniture.com.au/wp-content/uploads/2018/08/img-placeholder.png" alt=""> </div> <div class="grid__col">…

VIEW QUESTION
Back To Top
Search