--- title: Flexbox description: Use the Flexbox utility to provide classes for flexible layouts, including direction, alignment, and wrapping. --- ## Flex Container ### Direction Applicable to flex containers (`env-flex`) to set direction of flex items. Modifier classes are named using the format: `env-flex--direction-{value}` Valid modifier values - `row-reverse` - `column` - `column-reverse` Examples ```html
Item 1
Item 2
Item 3
Item 1
Item 2
Item 3
Item 1
Item 2
Item 3
Item 1
Item 2
Item 3
``` ### Justify content Applicable to flex containers (`env-flex`). Modifier classes are named using the format: `env-flex--justify-content-{value}` Valid values - `end` - `center` - `between` - `around` Examples ```html
Item
Item
Item
Item
Item
Item
Item
Item
Item
Item
Item
Item
Item
Item
Item
``` ### Align items Applicable to flex containers (`env-flex`). Modifier classes are named using the format: `env-flex--align-items-{value}` Valid values - `stretch` - `start` - `end` - `center` - `baseline` ```html
Item
Item
Item
Item
Item
Item
Item
Item
Item
Item
Item
Item
Item
Item
Item
``` ### Flex wrap Modifiers applicable to flex containers (`env-flex`). Valid modifiers: - `env-flex--wrap` - `env-flex--wrap-reverse` ```html
1
2
3
4
1
2
3
4
1
2
3
4
``` ### Flex gap 2025.07.1 Modifiers applicable to flex containers (`env-flex`). Valid modifiers: - `env-flex--gap-{value}` - `env-flex--column-gap-{value}` - `env-flex--row-gap-{value}` Valid values `xxx-small` (0.125em), `xx-small` (0.25em), `x-small` (0.5em), `small` (0.75em), `medium` (1em), `large` (1.5em), `x-large` (2em), `xx-large` (3em), `xxx-large` (4em) ```html
1
2
3
``` ## Flex Items ### Align self Applicable to direct children within a flex container (`env-flex__item`). Modifier classes are named using the format: `env-flex__item--align-{value}` Valid values - `stretch` - `start` - `end` - `center` - `baseline` ```html
Item
Aligned
Item
Item
Aligned
Item
Item
Aligned
Item
Item
Aligned
Item
Item
Aligned
Item
``` ### Flex length (`flex` property) Applicable to direct children within a flex container (`env-flex__item`). Used to specify the length of the flex item, relative to the rest of the flex items inside the same container. Modifier classes are named using the format: `env-flex__item--length-{value}` Valid values `1-10` ```html
Sidebar
Main
Sidebar
``` ### Flex grow (`flex-grow` property) Applicable to direct children within a flex container (`env-flex__item`). Used to specify how much the item will grow relative to the rest flex items inside the same container. Modifier classes are named using the format: `env-flex__item--grow-{value}` Valid values `1-10` ```html
Item
Item
Item
``` ## Deprecated [List of deprecated class names](/deprecated/flexbox/)