Skip to content
Learn Netverks

Lesson

Step 6/36 17% through track

xy-grid-intro

XY grid introduction

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 Foundation lesson—scope, vocabulary, and what you will practice next.

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

You will apply XY grid introduction 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 foundation track before skipping ahead.

Foundation 6’s XY grid is a flexbox layout system. A page band typically nests grid-containergrid-x → one or more cell elements. Width, growth, and shrink behavior are controlled with classes—not inline widths.

Core building blocks

  • grid-container — centered max-width wrapper with horizontal padding
  • grid-x — horizontal flex row (the “X” axis)
  • cell — column child; add small-12, medium-6, etc. for track spans
  • grid-margin-x / grid-padding-x — gutter between cells

Concepts from CSS flexbox apply directly. Compare Bootstrap’s row/col grid: both divide space into twelfths, but Foundation names the row grid-x and puts breakpoint prefixes on the cell.

Important interview questions and answers

  1. Q: Why is it called XY grid?
    A: Rows flow on the X axis (grid-x); vertical stacks use grid-y on the Y axis—one-dimensional flex tracks per direction.
  2. Q: Flexbox or CSS Grid in Foundation 6?
    A: The primary layout system is flex-based XY cells; use native CSS Grid separately when you need explicit two-dimensional template areas.

Self-check

  1. What three classes form the smallest valid XY layout?
  2. What does grid-margin-x add between siblings?

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

  • Flex track mental model clear?
  • Nested grid risks?

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