Pages

Cover and centre

Full-height pages: a cover with header and footer and a centred middle, or one centred thing.

Examples

Cover

aequitasDocs

Centred, whatever the height.

© 2026

Centre

Sign in

Anatomy

.coverFull-height flex column (at least 100dvh) with gutter padding and a step between children.
> headerOptional, first: sits flush with the top.
> [data-center]The middle. Auto margins push it to the vertical centre of the space left over.
> footerOptional, last: sits flush with the bottom.
.centerFull-height grid with gutter padding that centres its one child both ways.
.center > *The single child, as wide as the space allows up to φ⁷ ≈ 29rem.

API

AttributeValuesDescription
data-centerbooleanOn one child of .cover: centres it vertically between whatever comes before and after.

Accessibility

  • When a cover or centre is the whole page, the centred part is the content: make it (or the .center itself) the <main> landmark, with <header> and <footer> around it.
Jump to
ProportionFoundations
MaterialFoundations
PresetsFoundations
ShellLayouts · Application
Container and stacksLayouts · Pages
SplitLayouts · Pages
Grid, bento, masonryLayouts · Pages
Switcher and rowLayouts · Pages
↑↓Move↵OpenescClose