Skip to content
Learn Netverks

Lesson

Step 8/36 22% through track

grid-x-cells

Grid-x and cells

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

This lesson

This lesson teaches Grid-x and cells—the ideas, syntax, and habits you need before moving on in Foundation.

Most modern layouts are built with flexbox and grid; skipping this lesson leaves responsive UI fragile.

You will apply Grid-x and cells 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.

When the previous lesson's MCQs feel easy and you can explain Grid-x and cells in your own words.

Every horizontal band is a grid-x flex row. Direct children with class cell become columns. Size them with numbered classes (medium-6), fractional keywords (auto, shrink), or responsive collections (medium-up-2 on the row).

Cell sizing tools

  • small-12 medium-6 large-4 — mobile-first track spans
  • auto — grow to fill remaining space
  • shrink — width fits content (icons, labels)
  • Nested grid-x inside a cell — sub-layouts inherit flex context

Important interview questions and answers

  1. Q: What does medium-6 mean?
    A: From the medium breakpoint upward, the cell spans six of twelve columns (50% width); smaller viewports use classes defined for those breakpoints unless overridden.
  2. Q: cell auto vs medium-6?
    A: medium-6 fixes half width at md+; auto flex-grows to consume leftover space—handy for sidebars next to fluid content.

Self-check

  1. Write classes for a cell that is full width on mobile and half width on medium+.
  2. When is nesting grid-x inside a cell appropriate?

Challenge

Two-column row

  1. Build grid-x with two cell medium-6 children.
  2. Narrow the preview — cells should stack on small viewports.

Done when: side-by-side columns on medium+ and stacked layout on narrow screens.

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

  • How many cells in your row?
  • Stack behavior on small?

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