CSS UtilitiesStack

Stack

A stack arranges its children in a vertical column with an equal gap between each item, so you don’t have to add top or bottom margins to every element you put into it. It’s the go-to layout for forms, paragraphs of text, card bodies, and anywhere you want consistent vertical rhythm.

By default, items stretch to fill the stack’s width. Pair cs-stack with a cs-gap-* class to control the spacing and a cs-align-items-* class to change how children line up horizontally.

Examples

Stacks are well suited for forms, text, and ensuring consistent spacing between elements in the document flow.

Remember me on this device Log In

Aragorn's Squash

Altogether unleash weasel mainly well-protected hiding Farthing excuse. Falling pits oil em Hasufel levels weight rides vagabonds? Gamgee hard-won thunder merrier forests treasury. Past birthday lasts lowly there'd woe Woodland pa sun's slaying most handling.

Even the smallest person can change the course of the future. They tempted completely other caves cloven wisest draught scrumptious cook Undómiel friends. Dory crunchy huge sleepless. Unmade took nerves liquor defeated Arathorn.

Align Items

By default, items stretch to fill the inline size of the cs-stack container. Add any cs-align-items-* class to change how items line up in the inline direction.

Gap

By default, the gap between stack items uses --cs-space-m from your theme. Add any cs-gap-* class to change the spacing between items.