How is possible to fill-in the height of a row with a cell in the following >>JSFiddle:
.x { height: 50px; }
.row { background: #eee; }
.row>:nth-child(odd) { background: lightblue; }
.row>:nth-child(even) { background: pink; }
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="row">
<div class="col-xs-3">fill height v</div>
<div class="col-xs-9"> <div class="x"> unknown height </div> </div>
</div>
PS. in order to be mobile compatible and also IE 11, I can’t use flex
3
Answers
add
.row{display: flex}
width absolute position
jsfiddle.net/kth9vqhf
with display: table
jsfiddle.net/kth9vqhf/1
with jQuery
https://jsfiddle.net/kth9vqhf/3/
Using jQuery you can calculate the height of
.x
on the fly and set that as the minimum height for the cell.