I have two elements in my page's body that I want to live side by side and fill all vertical space.
My code is super simple:
<!-- index.html minus all the usual junk-->
<!-- also ignore the lack of a url-tag and the like, it's intentionally left out -->
<body>
<textarea id="text-field">
<iframe id="render-field">
</body>
and
// index.css
body {
font: caption;
display: flex;
height: 100%;
}
#text-field {
font-family: Courier;
width: 50%;
flex: 1 0 auto;
}
#render-field {
width: 50%;
flex: 1 0 auto;
}
It doesn't matter what I try, the two elements will not fill all the sapce available in the body.
Any help?