html, body { height: 100%; } body { margin: 0; padding: 0; } .root { display: flex; flex-direction: column; height: 100%; }