Menu
CoddyTech

Recap: Spacing

Part of the Fundamentals section of Coddy's Tailwind CSS journey. Lesson 10 of 55.

challenge icon

Challenge

Medium

Build an exhibition guide by combining the four skills from this chapter. Complete every panel so the guide works as a whole.

  • #part1: padding on every side of 52px.
  • #part2: horizontal padding of 52px, with 24 pixels of vertical padding.
  • #part3: top margin of 52px.
  • #part4: 52px of both horizontal and vertical gap between its flex children.

Preserve the supplied content and structure.

Keep the supplied content and element IDs. Edit the HTML utility classes or the requested CSS. Click Run preview to refresh the preview after edits, then use Check/Run code to grade your work.

Try it yourself

<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Practice studio</title><link rel="stylesheet" href="./styles.css"></head><body>
<div id="part1" class="">Reservation</div>
<div id="part2" class="">Route 12</div>
<div class="flow-root"><div id="part3" class="">Registration closes Friday</div></div>
<div id="part4" class="flex"><span>Art</span><span>Science</span><span>Music</span></div>
</body></html>

All lessons in Fundamentals