The Flex layout in Kirki allows you to create flexible and responsive sections using CSS Flexbox, all through a visual interface.

Flex is a layout in Kirki that uses CSS Flexbox to arrange its direct child elements in one dimension, either row or column.
It’s perfect for building horizontal navigation menus, vertical content stacks, split layouts, and more.

A Flex Container is the parent element, and the direct children of that element become Flex Items.
The cross-axis is the perpendicular axis to the main axis within a flex container. The main axis is defined by the flex-direction property, which can be set to a row or column.
For example, if the flex-direction is set to row, then the main axis will be horizontal, and the cross-axis will be vertical.
Horizontal Flex arranges child elements left to right in a row. Use this for navigation bars, side-by-side cards, and hero sections.
Vertical Flex arranges child elements top to bottom in a column. Use this for stacked content such as cards, lists, form fields, or any container where items should sit on top of one another.
Flex Wrap controls whether flex items are forced into a single line or broken across multiple lines.
You can also flip the order of flex items so they flow in the opposite direction along the main axis using the Reverse Direction toggle.
Control the alignment of items along the main axis and cross-axis.
The main axis is the direction items flow, i.e., it’s the same as Flex Direction:
Along the main axis, you can control how items are distributed:
The cross-axis runs perpendicular to the main axis:
Along the cross axis, you can control how items are positioned:
The Flex Gap sets the spacing between flex items.
For Horizontal Flex, this space will be the column gap, and for Vertical Flex, this space will be the row gap.
It’s the cleanest way to create consistent spacing between cards, icons, or buttons without adding padding or margin to individual items.
A flex item, also referred to as a flex child, has its own flex-specific settings for more granular control over its behavior within the container.
You’ll find these under Position in the Right Panel when the flex item is selected.
Self Align controls the alignment of an individual flex item along the cross-axis, overriding whatever the container’s alignment is set to. Use it when one item needs to be positioned differently from the rest.
Unlike Flex Alignment, which applies to all items in the container at once, Self Align applies only to the selected item.
Item Order controls the visual order in which a flex item appears within the container, independently of its position in the Layers panel. All items default to an order of 0.
Items with lower values appear first, while items with higher values appear last. Negative values are also allowed.
For example, an item with an order of -1 will appear before all items at 0, and an item with an order of 1 will appear after them.
Use Item Order to reorder items at different breakpoints without changing the underlying page structure.
Was this page helpful?
Our website uses cookies to improve your browsing experience on our website. By continuing to use this website, you agree to their use. For details, please check our Privacy Policy.