Min-Height
@include('_partials.class-table', [ 'scroll' => false, 'rows' => [ [ '.min-h-0', 'min-height: 0;', "Set the element's minimum height to 0.", ], [ '.min-h-full', 'min-height: 100%;', "Set the element's minimum height to 100%.", ], [ '.min-h-screen', 'min-height: 100vh;', "Set the element's minimum height to 100vh.", ], ] ])
Usage
Set the minimum height of an element using the min-h-0
, min-h-full
, or min-h-screen
utilities.
@component('_partials.code-sample')
Responsive
To control the min-height of an element at a specific breakpoint, add a {screen}:
prefix to any existing min-height utility.
For more information about Tailwind's responsive design features, check out the Responsive Design documentation.
@component('_partials.responsive-code-sample') @slot('none')
Customizing
Min-height scale
Customize Tailwind's default min-height scale in the theme.minHeight
section of your tailwind.config.js
file.
@component('_partials.customized-config', ['key' => 'theme.minHeight'])
- '0': '0',
- '1/4': '25%',
- '1/2': '50%',
- '3/4': '75%',
- 'full': '100%', @endcomponent
Learn more about customizing the default theme in the theme customization documentation.
@include('_partials.variants-and-disabling', [ 'utility' => [ 'name' => 'min-height', 'property' => 'minHeight', ], 'variants' => [ 'responsive', ], ])