Full Width Container
Full width section with max-width container
Preview
Contained Content
This content is centered and has a maximum width of 4xl (896px). Use max-w-7xl for full-width layouts.
{ window.Prism.highlightElement($refs.codeEl) }) }"
class="w-full flex items-center justify-between px-6 py-4 text-left bg-gray-50 dark:bg-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors cursor-pointer">
View Code
<div class="max-w-4xl mx-auto bg-white dark:bg-gray-800 rounded-lg shadow p-6">
<h2 class="text-2xl font-bold text-gray-900 dark:text-white mb-4">Contained Content</h2>
<p class="text-gray-600 dark:text-gray-400">This content is centered and has a maximum width of 4xl (896px).</p>
</div>