Working with Bootstrap 3. I have two col (col-md-8 and col-md-4) that have the same height. (thanks to a little snippet find here :) )
This is ok, it works. But I need them to have a background-color. The problem is -- and in fact it is normal -- that the two col are side by side and so I don't have a white gutter between them.
I can try with a "inner" div in each col. but then I will need these inner div to have the same height as the parent.
Her the result : You can see the gutters filled with the background color
@media only screen and (min-width : 768px) {
.is-table-row {
display: table;
}
.is-table-row [class*="col-"] {
float: none;
display: table-cell;
vertical-align: top;
}
}
.red {
background: red;
}
.green {
background: green;
}
<div class="container">
<div class="row is-table-row">
<div class="col-md-8 red"> text </div>
<div class="col-md-4 green"> text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text </div>
</div>
</div>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
Can you help me please ?