---
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
```
### 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
```
### 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
```
### Flex wrap
Modifiers applicable to flex containers (`env-flex`).
Valid modifiers:
- `env-flex--wrap`
- `env-flex--wrap-reverse`
```html
```
### 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
```
## 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
```
### 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
```
### 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
```
## Deprecated
[List of deprecated class names](/deprecated/flexbox/)