# Flex container

*noun*

say it: **“FLEKS kun-TAY-ner”** **/flɛks kənˈteɪnər/**

An element with display: flex, whose children are laid out with Flexbox.

## What is a **flex container**?

A **flex container** is an element with `display: flex`. Its direct children are laid out by Flexbox.

```css
.nav { display: flex; }   /* .nav is the flex container */
```

## In a sentence

- “The toolbar is the **flex container**, and its buttons line up inside it.”

Level: Journeyman · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/flex-container
