body { display: flex; flex-direction: column; min-height: 100vh; padding: 0 20px; & > header { height: 80px; } & > main { flex: 1; } & > footer { height: 80px; } }