body { margin: 0; } html, body, #root { height: 100%; } #root { display: flex; flex-direction: column; } #root > div { flex: 1; }