JSFiddle - React, Tailwind, and code Playground

by seadonk

HTML

<div id="root">
    <iframe class="menu" src="hidden"></iframe>
    <iframe class="bodyContent" src="hidden"></iframe>
</div>

CSS

iframe {
    box-sizing: border-box; /*include borders in the width calculation */
}
.menu {
    float: left;
    width: 12%;
}
.bodyContent {
    float: left;
    width: 88%;
    /*width can now be 88%*/
    /*border: none; removed so you can see the iframe in this example*/
}
body {
    margin: 0;
    padding: 0;
}
div#root {
    position: fixed;
    width: 100%;
    height: 100%;
}
div#root > iframe {
    height: 100%;
}