Pages

Split

Two columns in 1 : φ, wrapping when narrower than twice the basis.

Examples

Split

1
φ

Flipped

φ
1

Anatomy

.splitWrapping flex row. Exactly two children.
> :first-childThe narrow side, growing 1 (φ with data-flip).
> :last-childThe wide side, growing φ (1 with data-flip). The narrow side keeps at least --basis, the wide side --basis · φ; below that they wrap onto two rows, so side by side the ratio is always exact.

API

AttributeValuesDescription
data-flipbooleanSwaps the ratio so the first child is the wide one. The order stays the same.
--basis<length>Minimum width of each side; the split wraps when it can't give both. Default φ⁶ ≈ 18rem.

Accessibility

  • data-flip changes widths, not order: reading and tab order follow the markup, so put first what should be read first and flip the ratio to suit.
Jump to
ProportionFoundations
MaterialFoundations
PresetsFoundations
ShellLayouts · Application
Container and stacksLayouts · Pages
SplitLayouts · Pages
Grid, bento, masonryLayouts · Pages
Switcher and rowLayouts · Pages
↑↓Move↵OpenescClose