Windframe
Build Tailwind UIs that actually look good!
.jpg)
The max-h-32 class sets the maximum height of an element to 8rem (128 pixels).
The max-h-32 class sets the maximum height of an element to 8rem (128 pixels). This is useful for containers that should not exceed a medium height.
<div class="flex justify-center items-center rounded-t"> <div class="w-80 border text-white bg-indigo-600 border-indigo-400 rounded-lg p-4 max-h-32 overflow-y-auto"> <h2 class="text-lg font-bold">FAQs</h2> <ul class="mt-2 font-medium"> <li class="mb-2">Q1: What is Tailwind CSS ?</li> <li class="mb-2">Q2: How do I use max-height ?</li> <li class="mb-2">Q3: What are responsive utilities ?</li> <li class="mb-2">Q4: Can I customize Tailwind ?</li> </ul></div></div>Add the max-h-32 class directly to your HTML element:
<div class="max-h-32"> <!-- Your content here --></div>Use Tailwind's responsive prefixes to apply max-h-32 at specific breakpoints:
<div class="sm:max-h-32 md:max-h-32 lg:max-h-32"> Responsive element</div>sm:max-h-32 — applies from 640px and upmd:max-h-32 — applies from 768px and uplg:max-h-32 — applies from 1024px and upYou can extend or override this utility in your tailwind.config.js. See the Tailwind CSS documentation for details on customizing your theme.
Windframe is an AI visual editor for rapidly building stunning web UIs & websites
