Menu
CoddyTech

Recap: Grid Layout

Part of the Fundamentals section of Coddy's Tailwind CSS journey. Lesson 30 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: 10 equal grid columns with no gap.
  • #part2: column placement of 1 / -1.
  • #part3: 6 equal grid rows with no gap in its supplied height.
  • #part4: inline alignment inside cells of end, with 36 pixels of gap and matching vertical alignment.

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="grid w-80"><span>1</span><span>2</span><span>3</span><span>4</span><span>5</span></div>
<div id="parent_part2" class="grid grid-cols-4 w-80"><div id="part2" class="">Exhibit summary</div><span>Map</span></div>
<div id="part3" class="grid h-60"><span>Morning</span><span>Noon</span><span>Evening</span></div>
<div id="part4" class="grid grid-cols-2 h-40"><span>East</span><span>West</span></div>
</body></html>

All lessons in Fundamentals