I am facing an issue with setting the min-height of a row in Bootstrap. I would like the min-height of my row to be equal to that of the parent element, as shown below:
body {
height: 100%;
}
.header {
height: 30px;
}
.footer {
height: 100px;
}
<div class="container">
<div class="row header bg-primary">
<div class="col-6">Title item</div>
<div class="col-2">Title item</div>
<div class="col-2">Title item</div>
<div class="col-2">Title item</div>
</div>
<div class="row h-100 body bg-success">
<div class="col-12 h-100">
<div class="row">
<div class="col-6">item 1</div>
<div class="col-2">item 1</div>
<div class="col-2">item 1</div>
<div class="col-2">item 1</div>
</div>
<div class="row">
<div class="col-6">item a</div>
<div class="col-2">item a</div>
<div class="col-2">item a</div>
<div class="col-2">item a</div>
</div>
</div>
</div>
<div class="row footer bg-danger">
<div class="col-12"></div>
</div>
</div>
In the example above, I aim to have the "body" class with a min-height of 100% to cover the entire height of the parent element.