CJCoding With Joseph
15free / daySign inCreate account

Four Stacked Boxes

Sizing Items

In this challenge you will use <div> elements to create four boxes. A <div> is just a blank container by default, so you won’t see anything until you add CSS styles. We’ll use width, height, background color, margin, and border to make the boxes appear.

Keep reading this lesson

You've reached the end of the free preview. Unlock the rest of this lesson plus 12 more lessons in CSS.

  • Unlimited coding questions
  • Unlimited access to all classroom material
  • Weekly live call for questions and guidance
  • Mock exams marked by hand, with feedback
  • 3,000 AI tutor tokens / month
  • Personal SQL database (3 MB)
  • Progress tracking

Cancel anytime.