JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<div class="subContainer">
<div class="navParent">
<div class="nav">
hi
</div>
</div>
<div class="changeableContent">
<a id="contentAdd">Click me to add content</a>
</div>
</div>
</div>
CSS
html {
height: 100%;
}
body {
height: 100%;
}
.container {
height: 100%;
}
.subContainer {
display: table;
height: 100%;
width: 100%;
}
.navParent {
display: table-cell;
height: 100%;
width: 30%;
}
.nav {
height: 100%;
background: black;
}
.changeableContent {
display: table-cell;
height: 100%;
background-color: yellow;
}
JavaScript
jQuery(document).ready(function($) {
$('#contentAdd').on('click', function(event) {
event.preventDefault();
for (var i = 0; i < 100; i++)
$('.changeableContent').append($('<p></p>').text('SOME TEXT'));
});
});