FAQ: Flexbox - Nested Flexboxes

This community-built FAQ covers the “Nested Flexboxes” exercise from the lesson “Flexbox”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

FAQs on the exercise Nested Flexboxes

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

What does step 8 do? Nothing seems to change…

6 Likes

Bump does anyone know what step 8 does since .child is an flex-item not a container?
@codeneutrino @8-bitgaming

2 Likes

@microace27095 and @board1774168228 I think Codecademy did this by accident. You can report this lesson (which I’ll also do) so that the curriculum developers can fix it

3 Likes

Nested Flexboxes

.child class displays the element as a block level flex container which takes the full width of its parent container. Content is centered based on the width of its parents container. Items are centered from to to bottom.

Bump
Same question here…

B U M P
It seems Codecademy staff is not very active on the forums, not at all…

1 Like

BUMP
Same question here

It centres the content of each child (in this case the text “Child 1” etc).
It’s not noticeable because the text is already filling up the space inside the container, so it’s already appears centred. But if you edit the text leaving just 1,2,3 respectively or if you increase the size of the container, you will notice a difference.

1 Like