Is it possible to have a two-column layout, where one column remains static while the other dynamically generates content, while ensuring both columns are 100% the height of the wrapper?
https://jsfiddle.net/t1h4vngv/1/
HTML
<div class="wrapper">
<div class="col left">
Static stuff
</div>
<div class="col right">
Dynamic Stuff
</div>
</div>
CSS
html,
body,
.wrapper,
.col {
height: 100%;
margin: 0;
padding: 0;
}
.col {
float: left;
}
.left {
background: lightblue;
}
.right {
background: lightgreen;
}
.thing {
width: 200px;
height: 100px;
background: beige;
border: 2px solid grey;
}
JS
var el = '<div class="thing">Hi</div>'
var $right = $('.right')
for (var i = 0; i < 20; i++) {
var $el = $(el);
$right.append($el)
}