html,body{ height: 100%; } body{ display: flex; flex-direction: column; } .section{ height: 0; flex-grow: 1; } .container{ height: 100%; } #root{ height: 100%; } .bytemd { height: 100%; z-index: 99; }