I'm using Bootstrap and I'm trying to get three columns filled with text overlapping a rectangle, the squares should have the same height and there must be a gutter between them.
By using the display:table;
and display:table-cell;
properties I have been able to make the col-
divs to get the same height but I need the inner div to completely fill the parent and I can't see how to do this.
This is the code:
<div class="container">
<div class="fons"></div>
<div class="linia">
<div class="col-md-4">
<div class="dins">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
</div>
<div class="col-md-4">
<div class="dins">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
</div>
<div class="col-md-4">
<div class="dins">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
</div>
</div>
</div>
and CSS:
.fons {
background-color: blue;
height: 100px;
}
.linia {
display: table;
margin-top:-50px;
}
.col-md-4 {
display: table-cell;
float:none;
}
.dins {
background-color: cyan;
padding: 15px;
}
The question is: how can I get the .dins
div to cover all the parent table cell?
Please see the sample I've made here: https://www.bootply.com/dId7aMpOcX