Kindly EditDocumentationTry the editor

Flex layout

Arrange children across or down and understand alignment, wrapping, growth, and order.

Container and child controls#

Select the parent container for Layout type, direction, wrapping, alignment, and gap. Select a child for its flex basis, grow, shrink, align-self, and order. The inspector shows the related CSS property beside familiar control names.

Setting Meaning
Direction Defines the main axis, across or down, with supported reverse variants.
Wrap Allows children to move onto another line when they do not fit.
Justify content Distributes children along the main axis.
Align items Aligns children across the main axis.
Gap Separates children or wrapped lines.
Flex basis Sets a child’s starting size before free space is distributed.
Flex grow Allows a child to consume available free space.
Flex shrink Allows a child to become smaller when space is limited.
Align self Overrides cross-axis alignment for one child.
Order Changes the visual order of one child.

When one of a row's own arrangement settings is measured to do nothing, it is grayed with the reason (0.9.15): Justify content when the items already fill the row's width, Align items when they are already as tall as the row, and Gap when the row has only one item. The reason says what to change first, such as giving the items a Width or the row a Minimum height.

Responsive stacking#

Use the container’s supported stack choices or a smaller-screen direction override. A two-column row can become a vertical stack on phones without creating a second copy of the content. Review how gaps, widths, and child minimum sizes interact after stacking.

Visual order and reading order#

A reversed direction or explicit order can differ from document order. Keyboard navigation and assistive technology can still follow the underlying HTML. Prefer a meaningful document order, then use layout for presentation.

The editor’s move labels follow the measured layout where it can determine a direction. Wrapped or explicitly ordered layouts can use Earlier in the page and Later in the page instead of promising a visual left/right movement.

About this page

Documents Kindly Edit 0.9.16. Source: assets/editor.js:developerLayoutPanel, assets/container.css, docs/DEVELOPER.md. Theme choices and account permissions can change which controls appear.

Type a word or phrase to search the full documentation.