Menu
CoddyTech

Recap: Interaction States

Part of the Fundamentals section of Coddy's Tailwind CSS journey. Lesson 45 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: 85 percent opacity at rest and 45 percent while hovered.
  • #part2: no custom outline at rest and a 6px solid black outline while focused.
  • #part3: 100 percent opacity at rest and 45 percent while disabled.
  • #part4: 85 percent opacity at rest and 45 percent while its parent is hovered.

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 aria-hidden="true" class="h-8"></div><button id="part1" class="">Preview</button>
<button id="part2" class="outline-black">Search</button>
<button id="part3" class="" disabled>Sold out</button><button id="part3_enabled" class="">Reserve</button>
<div aria-hidden="true" class="h-8"></div><article id="parent_part4" class="group p-8 border"><span id="pad_part4" class="block h-8">Card cover</span><div id="part4" class="">View event</div></article>
</body></html>

All lessons in Fundamentals