Sizing

Height

Utilities for sets the height of an element.


Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
height-autoheight: auto
height-fullheight: 100%
height-screenheight: 100vh
classcss
height-pxheight: 1px
height-0height: 0
height-1height: 0.25rem
height-2height: 0.5rem
height-3height: 0.75rem
height-4height: 1rem
height-5height: 1.25rem
height-6height: 1.5rem
height-8height: 2rem
height-10height: 2.5rem
height-12height: 3rem
height-16height: 4rem
height-20height: 5rem
height-24height: 6rem
height-32height: 8rem
height-40height: 10rem
height-48height: 12rem
height-56height: 14rem
height-64height: 16rem
height-72height: 18rem
height-80height: 20rem
height-88height: 22rem
height-96height: 24rem
height-104height: 26rem
height-112height: 28rem
classcss
height-1/2width: 50%
height-1/3width: 33.333333%
height-2/3width: 66.666667%
height-1/4width: 25%
height-2/4width: 50%
height-3/4width: 75%
height-1/5width: 20%
height-2/5width: 40%
height-3/5width: 60%
height-4/5width: 80%
height-1/6width: 16.666667%
height-2/6width: 33.333333%
height-3/6width: 50%
height-4/6width: 66.666667%
height-5/6width: 83.333333%
height-1/12width: 8.333333%
height-2/12width: 16.666667%
height-3/12width: 25%
height-4/12width: 33.333333%
height-5/12width: 41.666667%
height-6/12width: 50%
height-7/12width: 58.333333%
height-8/12width: 66.666667%
height-9/12width: 75%
height-10/12width: 83.333333%
height-11/12width: 91.666667%

Usage

height-24
height-32
height-48

Set basic height to an element.

<div class="height-4">
...
</div>
HTML
.dummy {
@extend
.height-4;
}
SCSS

Set full height to an element.

<div class="height-full">
...
</div>
HTML
.dummy {
@extend
.height-full;
}
SCSS

Set full height in viewport screen to an element.

<div class="height-screen">
...
</div>
HTML
.dummy {
@extend
.height-screen;
}
SCSS

Set a different height in vertical formation to an element.

<div class="height-screen">
...
</div>
HTML
.dummy {
@extend
.height-screen;
}
SCSS

Use (expand) variant to apply height to all child elements.

<div class="(expand)height-24">
<div class="width-24">...</div>
<div class="width-24">...</div>
<div class="width-24">...</div>
</div>
HTML
.dummy {
@extend
.(expand)height-24;
}
SCSS
<div class="height-screen (expand)height-1/3">
<div>...</div>
<div>...</div>
<div>...</div>
</div>
HTML
.dummy {
@extend
.height-screen,
.(expand)height-1/3;
}
SCSS