W3.CSS·W3.CSS essentials

Responsive

Responsive classes change layout by viewport.

Beginner 10 min read Lesson 4 of 150 Challenge included
What you will be able to do
  • Use w3-row and w3-col.
  • Use w3-mobile.
  • Test at small widths.

In plain English

Responsive classes change layout by viewport.

  • Use w3-row and w3-col.
  • Use w3-mobile.
  • Test at small widths.
grid.htmlHTML
<div class="w3-row">
  <div class="w3-col m6 w3-mobile">Left</div>
  <div class="w3-col m6 w3-mobile">Right</div>
</div>
Your turn

Explain it back

Easy

Answer from memory: Which class makes a column stack on mobile?

TEXT · starter
Your answer…
Check your understanding before moving on.
Knowledge checkQuestion 1

Which class makes a column stack on mobile?

Select an answer to continue
Study tools

Make it yours.

Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.

Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign in
Finished reading?

Lock in what you just learned.

Mark this lesson complete to save your place and move one step closer to the certificate.

Next: Small page
Lesson 4 of 150 · 0% of course