Menu
CoddyTech

Recap: Sizing and Overflow

Part of the Fundamentals section of Coddy's Tailwind CSS journey. Lesson 35 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: width of 272px.
  • #part2: height of 272px.
  • #part3: a flexible full width capped at 672px, centered with automatic horizontal margins.
  • #part4: horizontal overflow behavior of scroll and hidden vertical overflow.

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="p-4">Ticket preview</div>
<div id="part2" class="bg-black text-white">Preview area</div>
<div id="part3" class="w-full mx-auto">Reading room</div>
<div id="part4" class="w-80 h-20"><div class="w-[800px]">North station | Museum | Garden | River | South station</div></div>
</body></html>

All lessons in Fundamentals