Menu
CoddyTech

Recap: Navigation

Part of the Responsive UI Patterns section of Coddy's Tailwind CSS journey. Lesson 10 of 55.

challenge icon

Challenge

Hard

Build a compact visitor navigation. Its list must wrap horizontally with 20px column gaps and 8px row gaps. Mark only the supplied current Venue link with bold weight and an underline; the Guide link stays normal and undecorated. The More disclosure must have 4px padding closed and 12px on all sides when open, then restore when closed. Preserve the semantic navigation, links and native disclosure.

Preserve the supplied content, semantic elements and IDs. Edit the requested utility classes. Press Run preview after edits, then Check/Run code to grade the result. Supplied JavaScript is read-only.

Try it yourself

<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Interface workshop</title><link rel="stylesheet" href="./styles.css"></head><body>
<nav aria-label="Visitor"><ul id="links" class="flex"><li><a id="venue" href="#venue" aria-current="page" class="font-normal no-underline">Venue</a></li><li><a id="guide" href="#guide" class="font-normal no-underline">Guide</a></li></ul><details id="more" class="p-1"><summary id="toggle">More</summary><a href="#contact">Contact</a></details></nav>
</body></html>

All lessons in Responsive UI Patterns