Sizing
Utilities for controlling width, height, and min/max sizes.
Width
Class
width
w-00w-2525%w-5050%w-7575%w-100100%w-autoautow-fitfit-contentw-minmin-contentw-maxmax-contentw-screen100vwHeight
Class
height
h-00h-2525%h-5050%h-7575%h-100100%h-autoautoh-fitfit-contenth-minmin-contenth-maxmax-contenth-screen100vhMin sizes
Class
Property
Value
min-w-0min-width0min-w-fullmin-width100%min-h-0min-height0min-h-fullmin-height100%min-h-screenmin-height100vhMax sizes
Class
Property
Value
max-w-fullmax-width100%max-w-screenmax-width100vwmax-w-nonemax-widthnonemax-h-fullmax-height100%max-h-screenmax-height100vhmax-h-nonemax-heightnoneArbitrary values (JIT)
The utils-jit package allows arbitrary sizes:
html
<div class="w-[320px]">Width 320px</div>
<div class="h-[200px]">Height 200px</div>
<div class="w-[50%] h-[calc(100vh-64px)]">Computed sizes</div>Examples
html
<!-- Full container width -->
<div class="w-100">100% width</div>
<!-- Constrained centered layout -->
<div class="w-[960px] max-w-100 mx-auto pa-4">
Page content
</div>
<!-- Full-screen section -->
<section class="w-screen min-h-screen d-flex items-center justify-center">
Full-screen block
</section>