Back to Freecodecamp

Introduction to Flexbox Lesson B

curriculum/challenges/english/blocks/top-introduction-to-flexbox/6571b2fecc1de61d7b4dd380.md

latest1.2 KB
Original Source

--description--

As you’ve seen, flexbox is not just a single CSS property but a whole toolbox of properties that you can use to put things where you need them. Some of these properties belong on the flex container, while some go on the flex items. This is a simple yet important concept.

A flex container is any element that has display: flex on it. A flex item is any element that lives directly inside of a flex container.

--questions--

--text--

What’s the difference between a flex container and a flex item?

--answers--

Flex containers are elements with display: flex, while flex items are elements within flex containers.


Flex containers are elements within flex items, while flex items define the overall layout.


Flex containers are elements using flexbox, and flex items are inline elements.


Flex containers are elements that define the layout structure, while flex items control the overall page design.

--video-solution--

1