Skip to content
Learn Netverks

Lesson

Step 82/134 61% through track

flexbox-flexbox-intro

Flexbox Intro

Last reviewed May 28, 2026 Content v20260528
Track mode
iframe_html
Means
HTML preview sandbox
Reading
~1 min
Level
beginner

This lesson

An orientation to this CSS lesson—scope, vocabulary, and what you will practice next.

You need a clear map of the CSS track so later lessons do not feel like isolated tricks.

You will apply Flexbox Intro in contexts like: Page layouts, dashboards, marketing sections, and component libraries.

Read the lesson, edit HTML/CSS in the playground, press Run to preview, then answer the lesson MCQs. Also open the interview prep blocks.

Start here at the beginning of the css track before skipping ahead.

Flexbox intro focuses on axes: main axis (justify-content) and cross axis (align-items).

Axis mental model

  • Main axis follows flex-direction.
  • Cross axis is perpendicular to main axis.
  • Most alignment confusion comes from axis mismatch.

Important interview questions and answers

  1. Q: What changes when flex-direction: column?
    A: Main/cross axes swap orientation.
  2. Q: Which property controls spacing along main axis?
    A: justify-content.
  3. Q: Which property aligns items cross axis?
    A: align-items.

Tip: Set display:flex on the parent; align/justify control children along axes.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs in your browser in a sandboxed frame. Backend runners appear when this track’s profile allows them.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • What part of this lesson needs a second read?
  • What would you try differently in a real project?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump