← Web Development Basics

Lesson 3 of 3 · 11 min

Flexbox layout

display: flex lines children up in a row. justify-content aligns along the main axis, align-items along the cross axis.

flex-wrap: wrap lets items flow onto new lines on small screens.

Practice

Build a row of three cards that wraps onto separate lines on narrow screens.

Quiz

+50 pts
1. Which aligns items on the main axis?
2. To let items wrap use…

Optional resources

Your lesson toolkit

No purchase or partner signup is required to complete this course or earn quiz points.

These are official product links, not active affiliate links. Learnly does not currently earn a commission from them.

Hostinger

Explore hosting options when you are ready to publish a website.

Paid hosting · optional; you can complete every exercise locally for free.

Explore tool

DigitalOcean

Explore cloud hosting and deployment documentation.

Usage-based pricing; promotional credits have eligibility conditions and may require billing details.

Explore tool