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 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-blue-500 w-60 h-40"></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="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[240px] h-[160px] 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 id="box" class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-blue-500 w-[240px] h-[160px]"></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 gap-4 w-[900px]">
<div id="a" class="flex-grow h-[64px]"></div>
<div id="b" class="flex-grow h-[64px]"></div>
<div id="c" class="flex-grow h-[64px]"></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 gap-4 w-[900px]">
<div id="a" class="flex-1 h-[64px]"></div>
<div id="b" class="flex-1 h-[64px]"></div>
<div id="c" class="flex-1 h-[64px]"></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 gap-4 w-[900px]">
<div id="a" class="w-[calc((900px - 32px)/3)] h-[64px]"></div>
<div id="b" class="w-[calc((900px - 32px)/3)] h-[64px]"></div>
<div id="c" class="w-[calc((900px - 32px)/3)] h-[64px]"></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] 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 <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] whitespace-nowrap overflow-hidden 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 <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="w-full p-4 bg-blue-100 border border-blue-200">L</div>
<div id="right" class="w-full p-4 bg-green-100 border border-green-200">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 <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 gap-4 p-6 bg-white rounded-xl shadow-sm">
<div id="left" class="w-32 h-24 bg-blue-500 text-white flex items-center justify-center rounded-lg">L</div>
<div id="right" class="w-32 h-24 bg-red-500 text-white flex items-center justify-center rounded-lg">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="text-white bg-blue-600 rounded-md 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 text-white rounded-lg 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="text-white rounded-lg bg-blue-600 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 <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="w-[200px] h-[120px] bg-slate-50 border border-slate-200 rounded-md relative">
<div id="badge" class="absolute w-[24px] h-[24px] bg-blue-500 rounded-full top-[-12px] right-[12px]"></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-[200px] h-[120px] bg-gray-100 border border-gray-300">
<div id="badge" class="absolute w-[24px] h-[24px] bg-blue-600 top-[-12px] left-[188px]"></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-[200px] h-[120px] bg-white border border-gray-200 rounded overflow-visible">
<div id="badge" class="absolute w-[24px] h-[24px] bg-blue-500 rounded-full top-[-12px] right-[12px]"></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 w-[1200px] gap-0">
<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 w-[1200px] gap-0">
<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 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 dark:bg-gray-900 text-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 dark:bg-gray-900 text-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 h-16 bg-slate-900 text-white px-4 z-50"></header>
<main id="content" class="h-[2000px] bg-white p-6"></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 h-16 bg-neutral-900 text-white shadow-md">
<div class="flex justify-center items-center w-full">
<span class="text-sm font-semibold">Navigation Menu</span>
</div>
</header>
<main id="content" class="pt-16 w-full h-[2000px]">
<div class="p-4 max-w-4xl mx-auto">
<h1 class="text-4xl font-bold mb-6 text-white">Content Area</h1>
<p class="text-slate-300">
This main section is 2000px tall. The header is pinned to the top of the viewport.
</p>
<div class="grid grid-cols-1 gap-4 mt-8">
<!-- Dummy blocks to simulate length -->
<div class="h-16 bg-neutral-800 rounded border border-neutral-700"></div>
<div class="h-16 bg-neutral-800 rounded border border-neutral-700"></div>
<div class="h-16 bg-neutral-800 rounded border border-neutral-700"></div>
<div class="h-16 bg-neutral-800 rounded border border-neutral-700"></div>
<div class="h-16 bg-neutral-800 rounded border border-neutral-700"></div>
</div>
</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="fixed top-0 h-16 z-50 bg-slate-900 text-white w-full">
</header>
<main id="content" class="mt-16 h-[2000px] bg-white text-slate-900">
</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 flex-col h-screen w-full overflow-hidden">
<header id="top" class="h-16 w-full"></header>
<div class="flex-1 flex">
<aside id="side" class="w-64 flex-shrink-0"></aside>
<main id="main" class="flex-1"></main>
</div>
<footer id="foot" class="h-12 w-full"></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 flex-col h-screen w-screen overflow-hidden">
<header id="top" class="h-16 w-full"></header>
<div class="flex flex-row flex-1 overflow-hidden">
<aside id="side" class="w-64 flex-none"></aside>
<main id="main" class="flex-1"></main>
</div>
<footer id="foot" class="h-12 w-full"></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 flex-col h-screen w-full overflow-hidden">
<header id="top" class="h-16 w-full"></header>
<div class="flex-1 flex">
<aside id="side" class="w-64 h-full"></aside>
<main id="main" class="flex-1"></main>
</div>
<footer id="foot" class="h-12 w-full"></footer>
</div>