Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="box">, 240px wide and 160px tall, with a blue-500 background. Center it horizontally and vertically in the viewport at any viewport size.
<div class="flex min-h-screen items-center justify-center">
<div id="box" class="h-40 w-60 bg-blue-500"></div>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="box">, 240px wide and 160px tall, with a blue-500 background. Center it horizontally and vertically in the viewport at any viewport size.
<div id="box" class="fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-60 h-40 bg-blue-500"></div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="box">, 240px wide and 160px tall, with a blue-500 background. Center it horizontally and vertically in the viewport at any viewport size.
<div class="flex min-h-screen items-center justify-center">
<div id="box" class="h-40 w-60 bg-blue-500"></div>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="row">, 900px wide, containing <div id="a">, <div id="b">, and <div id="c"> side by side. The three children must have equal widths, a 16px gap between them, and a height of 64px.
<div id="row" class="grid w-[900px] grid-cols-3 gap-4">
<div id="a" class="h-16"></div>
<div id="b" class="h-16"></div>
<div id="c" class="h-16"></div>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="row">, 900px wide, containing <div id="a">, <div id="b">, and <div id="c"> side by side. The three children must have equal widths, a 16px gap between them, and a height of 64px.
<div id="row" class="flex w-[900px] gap-4">
<div id="a" class="h-16 flex-1"></div>
<div id="b" class="h-16 flex-1"></div>
<div id="c" class="h-16 flex-1"></div>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="row">, 900px wide, containing <div id="a">, <div id="b">, and <div id="c"> side by side. The three children must have equal widths, a 16px gap between them, and a height of 64px.
<div id="row" class="grid w-[900px] grid-cols-3 gap-4">
<div id="a" class="h-16"></div>
<div id="b" class="h-16"></div>
<div id="c" class="h-16"></div>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <p id="t">, 200px wide, containing the text "The quick brown fox jumps over the lazy dog and keeps on running". Keep the text on one line and cut off the overflow with an ellipsis.
<p id="t" class="w-[200px] overflow-hidden whitespace-nowrap text-ellipsis">The quick brown fox jumps over the lazy dog and keeps on running</p>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <p id="t">, 200px wide, containing the text "The quick brown fox jumps over the lazy dog and keeps on running". Keep the text on one line and cut off the overflow with an ellipsis.
<p id="t" class="w-[200px] overflow-hidden text-ellipsis whitespace-nowrap">The quick brown fox jumps over the lazy dog and keeps on running</p>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <p id="t">, 200px wide, containing the text "The quick brown fox jumps over the lazy dog and keeps on running". Keep the text on one line and cut off the overflow with an ellipsis.
<p id="t" class="w-[200px] truncate">The quick brown fox jumps over the lazy dog and keeps on running</p>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="wrap"> containing <div id="left">L</div> and <div id="right">R</div>. Below Tailwind's md breakpoint, stack them vertically with left above right. At md and wider, place them side by side with left on the left.
<div id="wrap" class="flex flex-col md:flex-row">
<div id="left" class="p-4">L</div>
<div id="right" class="p-4">R</div>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="wrap"> containing <div id="left">L</div> and <div id="right">R</div>. Below Tailwind's md breakpoint, stack them vertically with left above right. At md and wider, place them side by side with left on the left.
<div id="wrap" class="flex flex-col md:flex-row">
<div id="left" class="p-4">L</div>
<div id="right" class="p-4">R</div>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="wrap"> containing <div id="left">L</div> and <div id="right">R</div>. Below Tailwind's md breakpoint, stack them vertically with left above right. At md and wider, place them side by side with left on the left.
<div id="wrap" class="flex flex-col md:flex-row">
<div id="left">L</div>
<div id="right">R</div>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <button id="b">Save</button> with white text, an 8px border radius, and a blue-600 background. While the pointer is over it, the background changes to green-600.
<button id="b" class="rounded-lg bg-blue-600 text-white hover:bg-green-600">Save</button>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <button id="b">Save</button> with white text, an 8px border radius, and a blue-600 background. While the pointer is over it, the background changes to green-600.
<button id="b" class="rounded-lg bg-blue-600 text-white hover:bg-green-600">Save</button>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <button id="b">Save</button> with white text, an 8px border radius, and a blue-600 background. While the pointer is over it, the background changes to green-600.
<button id="b" class="bg-blue-600 hover:bg-green-600 text-white rounded-lg">Save</button>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="card">, 200px wide and 120px tall, containing <div id="badge">, 24px wide and 24px tall. The center of the badge must sit exactly on the top-right corner of the card.
<div id="card" class="relative h-[120px] w-[200px] rounded-xl bg-slate-900 shadow-lg">
<div id="badge" class="absolute left-full top-0 h-6 w-6 -translate-x-1/2 -translate-y-1/2 rounded-full bg-amber-400 ring-2 ring-white"></div>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="card">, 200px wide and 120px tall, containing <div id="badge">, 24px wide and 24px tall. The center of the badge must sit exactly on the top-right corner of the card.
<div id="card" class="relative w-50 h-30">
<div id="badge" class="absolute -top-3 -right-3 w-6 h-6"></div>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="card">, 200px wide and 120px tall, containing <div id="badge">, 24px wide and 24px tall. The center of the badge must sit exactly on the top-right corner of the card.
<div id="card" class="relative h-[120px] w-[200px] rounded-lg border border-slate-300 bg-white shadow-sm">
<div id="badge" class="absolute right-0 top-0 h-6 w-6 translate-x-1/2 translate-y-1/2 rounded-full border-2 border-white bg-rose-500 shadow"></div>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="g">, 1200px wide, as a 12-column grid with no gap, containing <div id="main"> spanning 8 columns and <div id="side"> spanning 4 columns in the same row.
<div id="g" class="grid grid-cols-12 gap-0 w-[1200px]">
<div id="main" class="col-span-8"></div>
<div id="side" class="col-span-4"></div>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="g">, 1200px wide, as a 12-column grid with no gap, containing <div id="main"> spanning 8 columns and <div id="side"> spanning 4 columns in the same row.
<div id="g" class="grid grid-cols-12 gap-0 w-[1200px]">
<div id="main" class="col-span-8"></div>
<div id="side" class="col-span-4"></div>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="g">, 1200px wide, as a 12-column grid with no gap, containing <div id="main"> spanning 8 columns and <div id="side"> spanning 4 columns in the same row.
<div id="g" class="grid grid-cols-12 gap-0 w-[1200px]">
<div id="main" class="col-span-8"></div>
<div id="side" class="col-span-4"></div>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="panel">Hello</div>. With the system in light mode, it has a white background and gray-900 text. With the system in dark mode, it has a gray-900 background and white text.
<div id="panel" class="bg-white text-gray-900 dark:bg-gray-900 dark:text-white">Hello</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="panel">Hello</div>. With the system in light mode, it has a white background and gray-900 text. With the system in dark mode, it has a gray-900 background and white text.
<div id="panel" class="bg-white text-gray-900 dark:bg-gray-900 dark:text-white">Hello</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <div id="panel">Hello</div>. With the system in light mode, it has a white background and gray-900 text. With the system in dark mode, it has a gray-900 background and white text.
<div id="panel" class="bg-white text-gray-900 dark:bg-gray-900 dark:text-white">Hello</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <header id="head">, 64px tall, followed by <main id="content">, 2000px tall. The header must stay at the top of the viewport while the page scrolls, and it must not cover the top of the content before scrolling.
<header id="head" class="sticky top-0 z-50 flex h-16 items-center justify-between border-b border-slate-200/80 bg-white/85 px-6 backdrop-blur-md sm:px-10">
<div class="flex items-center gap-3">
<span class="flex h-8 w-8 items-center justify-center rounded-lg bg-indigo-600 text-sm font-bold text-white">D</span>
<span class="text-base font-semibold tracking-tight text-slate-900">Depth<span class="text-indigo-600">/</span>2000</span>
</div>
<nav class="hidden items-center gap-8 text-sm font-medium text-slate-600 sm:flex">
<a href="#content" class="transition-colors duration-200 hover:text-indigo-600">Overview</a>
<a href="#content" class="transition-colors duration-200 hover:text-indigo-600">Milestones</a>
<a href="#content" class="transition-colors duration-200 hover:text-indigo-600">Notes</a>
</nav>
<a href="#content" class="rounded-full bg-slate-900 px-4 py-1.5 text-sm font-medium text-white transition-colors duration-200 hover:bg-indigo-600">Scroll ↓</a>
</header>
<main id="content" class="relative h-[2000px] overflow-hidden bg-slate-50">
<div class="pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_1px_1px,rgba(100,116,139,0.14)_1px,transparent_0)] bg-[length:28px_28px]"></div>
<div class="pointer-events-none absolute left-1/2 top-0 h-full w-px -translate-x-1/2 bg-gradient-to-b from-indigo-400 via-slate-300 to-transparent"></div>
<section class="absolute inset-x-0 top-24 mx-auto max-w-xl px-6 text-center">
<span class="absolute -top-6 left-1/2 h-3.5 w-3.5 -translate-x-1/2 rounded-full bg-indigo-500 ring-4 ring-indigo-100"></span>
<p class="text-xs font-semibold uppercase tracking-[0.35em] text-indigo-600">01 · Overview</p>
<h2 class="mt-4 text-4xl font-bold tracking-tight text-slate-900 sm:text-5xl">A page that keeps its header</h2>
<p class="mt-4 leading-relaxed text-slate-600">The bar above is pinned to the top of the viewport. Before you scroll it sits above this content; while you scroll, it stays put.</p>
</section>
<section class="absolute inset-x-0 top-[620px] mx-auto max-w-xl px-6 text-center">
<span class="absolute -top-6 left-1/2 h-3.5 w-3.5 -translate-x-1/2 rounded-full bg-indigo-500 ring-4 ring-indigo-100"></span>
<p class="text-xs font-semibold uppercase tracking-[0.35em] text-indigo-600">02 · Milestones</p>
<h2 class="mt-4 text-3xl font-bold tracking-tight text-slate-900">Markers along the way</h2>
<p class="mt-4 leading-relaxed text-slate-600">Each dot on the spine is a checkpoint. The header never drifts away, so you can always find your way back up.</p>
</section>
<section class="absolute inset-x-0 top-[1150px] mx-auto max-w-xl px-6 text-center">
<span class="absolute -top-6 left-1/2 h-3.5 w-3.5 -translate-x-1/2 rounded-full bg-indigo-500 ring-4 ring-indigo-100"></span>
<p class="text-xs font-semibold uppercase tracking-[0.35em] text-indigo-600">03 · Notes</p>
<h2 class="mt-4 text-3xl font-bold tracking-tight text-slate-900">Under the hood</h2>
<div class="mt-6 flex flex-wrap items-center justify-center gap-3">
<span class="rounded-full border border-slate-200 bg-white px-3 py-1 font-mono text-xs text-slate-600 shadow-sm">h-16 → 64px</span>
<span class="rounded-full border border-slate-200 bg-white px-3 py-1 font-mono text-xs text-slate-600 shadow-sm">h-[2000px]</span>
<span class="rounded-full border border-slate-200 bg-white px-3 py-1 font-mono text-xs text-slate-600 shadow-sm">sticky top-0</span>
</div>
</section>
<section class="absolute inset-x-0 top-[1680px] mx-auto max-w-xl px-6 text-center">
<span class="absolute -top-6 left-1/2 h-3.5 w-3.5 -translate-x-1/2 rounded-full bg-emerald-500 ring-4 ring-emerald-100"></span>
<p class="text-xs font-semibold uppercase tracking-[0.35em] text-emerald-600">04 · Bottom</p>
<h2 class="mt-4 text-3xl font-bold tracking-tight text-slate-900">You made it 2000px down</h2>
<p class="mt-4 leading-relaxed text-slate-600">And the header is still right there, exactly where you left it.</p>
</section>
<p class="absolute inset-x-0 bottom-8 text-center font-mono text-xs tracking-widest text-slate-400">— end of 2000px —</p>
</main>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <header id="head">, 64px tall, followed by <main id="content">, 2000px tall. The header must stay at the top of the viewport while the page scrolls, and it must not cover the top of the content before scrolling.
<header id="head" class="sticky top-0 z-50 flex h-16 items-center border-b border-slate-200 bg-white/90 px-6 backdrop-blur">
<span class="text-lg font-semibold tracking-tight text-slate-900">Sticky Header</span>
</header>
<main id="content" class="h-[2000px] bg-slate-50">
<div class="mx-auto max-w-3xl p-8">
<h1 class="text-3xl font-bold text-slate-900">Content</h1>
<p class="mt-4 text-slate-600">Scroll down — the header stays pinned at the top of the viewport.</p>
</div>
</main>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create <header id="head">, 64px tall, followed by <main id="content">, 2000px tall. The header must stay at the top of the viewport while the page scrolls, and it must not cover the top of the content before scrolling.
<header id="head" class="sticky top-0 z-50 flex h-16 w-full items-center border-b border-gray-200 bg-white px-6 shadow-sm">
<span class="text-lg font-semibold tracking-tight text-gray-900">Header</span>
</header>
<main id="content" class="h-[2000px] w-full bg-gray-50"></main>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create a layout that fills the viewport at any size, containing four empty elements. <header id="top"> is 64px tall across the full width at the top. <footer id="foot"> is 48px tall across the full width at the bottom. Between them, <aside id="side"> is 256px wide on the left and <main id="main"> fills the remaining space. The page does not scroll.
<div class="flex h-dvh flex-col overflow-hidden">
<header id="top" class="h-16 shrink-0"></header>
<div class="flex min-h-0 flex-1">
<aside id="side" class="w-64 shrink-0"></aside>
<main id="main" class="min-w-0 flex-1"></main>
</div>
<footer id="foot" class="h-12 shrink-0"></footer>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create a layout that fills the viewport at any size, containing four empty elements. <header id="top"> is 64px tall across the full width at the top. <footer id="foot"> is 48px tall across the full width at the bottom. Between them, <aside id="side"> is 256px wide on the left and <main id="main"> fills the remaining space. The page does not scroll.
<div class="flex h-dvh flex-col overflow-hidden">
<header id="top" class="h-16 shrink-0"></header>
<div class="flex min-h-0 flex-1">
<aside id="side" class="w-64 shrink-0"></aside>
<main id="main" class="min-w-0 flex-1"></main>
</div>
<footer id="foot" class="h-12 shrink-0"></footer>
</div>
Provide only one ```html code block containing an HTML fragment. The fragment goes inside the empty <body> of a page that already has Tailwind CSS v4 loaded with its default theme. Style it using only Tailwind utility classes: do not use style attributes, and do not use <style>, <script>, or <link> tags. Use exactly the ids given. Do not include explanations.
Create a layout that fills the viewport at any size, containing four empty elements. <header id="top"> is 64px tall across the full width at the top. <footer id="foot"> is 48px tall across the full width at the bottom. Between them, <aside id="side"> is 256px wide on the left and <main id="main"> fills the remaining space. The page does not scroll.
<div class="flex h-dvh flex-col overflow-hidden">
<header id="top" class="h-16 shrink-0"></header>
<div class="flex min-h-0 flex-1">
<aside id="side" class="w-64 shrink-0"></aside>
<main id="main" class="min-w-0 flex-1"></main>
</div>
<footer id="foot" class="h-12 shrink-0"></footer>
</div>