Recap: Intrinsic Layouts
Part of the Responsive UI Patterns section of Coddy's Tailwind CSS journey. Lesson 35 of 55.
Challenge
HardBuild a resource grid that fits as many 180px-minimum cards as possible, limits that minimum to the available width, shares extra space equally and uses 20px gaps on both axes. At the 500px viewport each card has 240px for its full-width internal row: keep its 64px Open button fixed and give the filename the remaining 160px beside the 16px gap, with a one-line ellipsis and zero minimum width. Preserve both complete filenames.
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>
<section id="grid" class="grid grid-cols-1"><article class="min-w-0"><div class="flex w-full gap-4"><p id="name1" class="flex-1">Workshop-recording-morning-session.mp4</p><button id="action1" class="w-16 ">Open</button></div></article><article class="min-w-0"><div class="flex w-full gap-4"><p id="name2" class="flex-1">Workshop-recording-evening-session.mp4</p><button id="action2" class="w-16 ">Open</button></div></article></section>
</body></html>
All lessons in Responsive UI Patterns
1Page Shells
Growing Page ShellsFlexible Content RailsBounded Scroll RegionsFull-Bleed RegionsRecap: Page Shells4Form Layouts
Responsive Field GroupsFocused Field GroupsSelectable Form OptionsNative Validation CuesRecap: Form Layouts7Intrinsic Layouts
Auto-Fitting CollectionsResilient Label RowsMulti-Line PreviewsReadable Long TokensRecap: Intrinsic Layouts2Navigation Patterns
Wrapping NavigationCurrent Page CuesNative Menu DisclosuresKeyboard Skip LinksRecap: Navigation5Data Tables
Scrollable Data TablesPredictable Table ColumnsRow State PresentationSticky Table HeadersRecap: Data Tables8Interactive Panels
Expanded Control CuesChoice Card StatesFocus-Aware Help PanelsContent-Aware Empty StatesRecap: Interactive Panels11Project: Event Portal
Portal ShellSession Browser