Interactive online courses HTML Academy
2026-03-09 12:23 Diff

A flex item inside a flex container can also be made into its own flex container.

It will also behave like a flex item itself, meaning, in other words, that it will obey the arrangement and alignment rules that have been assigned to its parent, and it will also act like an independent flex container. At the same time, its first-level nest items will only follow its flex rules.

In our example, let’s create a block with social network icons as an embedded flex container, and then let’s arrange its child flex items along the entire height of the block.