In this case, the height:100% in col is not works, because .row is no height
div[class*='col']
{
border:solid 1px #000;
height:100%;
}
.row
{
border:solid 1px #000;
}
<div class="container-fluid">
<div class="row">
<div class="col-md-4">1<br>1<br>1<br>1<br>1<br>1<br>1<br></div>
<div class="col-md-4">2</div>
<div class="col-md-4">3</div>
</div>
</div>
If I set a height for row, all cols can match row height. But I don't want to set the height for row, because I want the row height can match to the biggest col height. How to use css to make all cols height 100%?
div[class*='col']
{
border:solid 1px #000;
height:100%;
}
.row
{
border:solid 1px #000;
height:500px;
}
<div class="container-fluid">
<div class="row">
<div class="col-md-4">1<br>1<br>1<br>1<br>1<br>1<br>1<br></div>
<div class="col-md-4">2</div>
<div class="col-md-4">3</div>
</div>
</div>