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.

.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

Updated