Fill remaining height CSS .parent { height: 100%; display: flex; flex-direction: column; } .child { flex-grow: 1; }