#Height
Classes to set the height of an element.
Class | Styles |
---|---|
h-0 |
|
h-px |
|
h-auto |
|
h-screen |
|
h-10p |
|
h-20p |
|
h-30p |
|
h-40p |
|
h-50p |
|
h-60p |
|
h-70p |
|
h-80p |
|
h-90p |
|
h-100p |
|
h-1 |
|
h-2 |
|
h-3 |
|
h-4 |
|
h-5 |
|
h-6 |
|
h-8 |
|
h-10 |
|
h-12 |
|
h-16 |
|
h-20 |
|
h-24 |
|
h-32 |
|
h-48 |
|
h-64 |
|
Classes to set the height of an element.
Class | Styles |
---|---|
h-0 |
|
h-px |
|
h-auto |
|
h-screen |
|
h-10p |
|
h-20p |
|
h-30p |
|
h-40p |
|
h-50p |
|
h-60p |
|
h-70p |
|
h-80p |
|
h-90p |
|
h-100p |
|
h-1 |
|
h-2 |
|
h-3 |
|
h-4 |
|
h-5 |
|
h-6 |
|
h-8 |
|
h-10 |
|
h-12 |
|
h-16 |
|
h-20 |
|
h-24 |
|
h-32 |
|
h-48 |
|
h-64 |
|
The h-{{value}}p
classes gives an element a percentage based height.
h-30p
h-50p
h-70p
h-90p
<div>
<div class="h-30p">...</div>
<div class="h-50p">...</div>
<div class="h-70p">...</div>
<div class="h-90p">...</div>
</div>
The h-{{value}}
classes gives an element an absolute value based height.
h-6
h-8
h-16
h-32
<div>
<div class="h-6">...</div>
<div class="h-8">...</div>
<div class="h-16">...</div>
<div class="h-32">...</div>
</div>
The h-screen
class makes an element span the entire viewport.
h-screen
<div>
<div class="h-screen">...</div>
</div>
The h-auto
class makes an element use a browser determined height. This is commonly used to unset a previously set height.
h-auto
<div>
<div class="h-auto">...</div>
</div>
All utility classes mentioned here support viewport based application. All you need to do is add a -<viewport>
at the end of the class(es) you are using. For example, use h-30p-md
to apply h-30p
on medium screens and above.
<div class="h-30p-md">
<!-- ... -->
</div>
For more information, visit the Viewports documentation.