W3.CSS·W3.CSS essentials

Cards

Cards group content with padding, borders and shadows.

Beginner 10 min read Lesson 2 of 150 Challenge included
What you will be able to do
  • Use w3-card.
  • Use w3-card-4 for more shadow.
  • Add w3-container inside.

In plain English

Cards group content with padding, borders and shadows.

  • Use w3-card.
  • Use w3-card-4 for more shadow.
  • Add w3-container inside.
card.htmlHTML
<div class="w3-card-4 w3-margin">
  <div class="w3-container">
    <h2>CSS Grid</h2>
    <p>Layout without hacks.</p>
  </div>
</div>
Your turn

Explain it back

Easy

Answer from memory: Which class adds a stronger shadow?

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

Which class adds a stronger shadow?

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: Colours
Lesson 2 of 150 · 0% of course