I am attempting to ensure that the .box-content
div
takes up the maximum height available within boxA/boxB div
. Inside boxA/boxB, there is a .box-header
and a .box-content
div
. The .box-content
shares the same div
with the .box-header
.
You can observe in this JSFiddle that the .box-content
overflows its parent div
.
How can I address this issue using only CSS while adhering to these two guidelines:
- The height of the
.box-content
must be flexible (adjustable whenever window size changes); - The minimum height of the
.box-content
should be 200px;