What is a flex container and what is its job?

Experience Level: Junior
Tags: CSSFlexbox

Answer

A flex container is an element that contains child elemens that are positioned depending on the flex container settings.

Every HTML element can be converted to a flex container. The child elements of such HTML element then become flex items.

The flex container defines how the flex items contained inside the flex container will be positioned and sized.

Comments

No Comments Yet.
Be the first to tell us what you think.
Flexbox
Flexbox

Are you learning Flexbox ? Try our test we designed to help you progress faster.

Test yourself
25 Flexbox questions that will help you to nail your job interview
25 Flexbox questions that will help you to nail your job interview

Are you learning Flexbox ? Try our test we designed to help you progress faster.

Test yourself