Skip to content
Learn Netverks

Lesson

Step 8/36 22% through track

columns-rows

Columns, rows, and nesting

Last reviewed Jun 1, 2026 Content v20260601
Track mode
iframe_html
Means
HTML preview sandbox
Reading
~1 min
Level
intermediate

This lesson

This lesson teaches Columns, rows, and nesting—the ideas, syntax, and habits you need before moving on in Bootstrap.

Bootstrap patterns appear constantly in legacy apps and rapid admin UI work.

You will apply Columns, rows, and nesting in contexts like: Internal tools, WordPress themes, Laravel apps, and teams that want opinionated UI without writing every rule from scratch.

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 Columns, rows, and nesting in your own words.

Columns size with breakpoint prefixes: col-12 col-md-6 col-lg-4 means full width on mobile, half on medium, third on large. Use row-cols-* on the row to set equal columns without sizing every child.

Advanced column tools

  • col-auto — shrink to content width
  • offset-md-2 — push a column right by empty tracks
  • order-* — reorder visually without changing DOM order carelessly
  • Nested .row inside a .col — sub-grids inherit gutter behavior

Important interview questions and answers

  1. Q: What does col-md-6 mean?
    A: From the md breakpoint upward, the column spans 6 of 12 tracks (50% width); below md, earlier col-* rules apply.
  2. Q: row-cols-3 vs three col-4 elements?
    A: row-cols-3 makes each direct child one-third width; explicit col-4 sets span per element—pick based on whether children are uniform.

Self-check

  1. Write classes for a column that is full width on mobile and half width on md+.
  2. When is nesting a row inside a column valid?

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 happens if you forget .row?
  • How do gutters affect nested grids?

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