html, body { height: 100%; margin: 0; } body { display: flex; flex-direction: column; } main, .bricks-body { flex: 1; } footer { margin-top: auto; }