Docs / Height

Height

vel-src: sizing.css

Utilities for setting the height of an element.

ClassProperties
vel-h-0height: 0px
vel-h-autoheight: auto
vel-h-fullheight: 100%
vel-h-screenheight: 100vh
vel-h-minheight: min-content
vel-h-maxheight: max-content
vel-h-fitheight: fit-content
vel-h-1height: 0.25rem
vel-h-2height: 0.5rem
vel-h-4height: 1rem
vel-h-8height: 2rem
vel-h-16height: 4rem
vel-h-32height: 8rem
vel-h-64height: 16rem

Examples

Height variants

h-8

h-16

h-24

example.html
<div class="vel-flex vel-items-end vel-gap-4">
  <div style="background:#1a2236;border:1px solid #1e2d45;border-radius:6px;display:flex;flex-direction:column;justify-content:flex-end">
    <div class="vel-h-8 vel-bg-primary vel-rounded-sm" style="width:60px"></div>
    <p style="color:#64748b;font-size:11px;text-align:center;margin-top:4px">h-8</p>
  </div>
  <div style="background:#1a2236;border:1px solid #1e2d45;border-radius:6px;display:flex;flex-direction:column;justify-content:flex-end">
    <div class="vel-h-16 vel-bg-success vel-rounded-sm" style="width:60px"></div>
    <p style="color:#64748b;font-size:11px;text-align:center;margin-top:4px">h-16</p>
  </div>
  <div style="background:#1a2236;border:1px solid #1e2d45;border-radius:6px;display:flex;flex-direction:column;justify-content:flex-end">
    <div class="vel-h-24 vel-bg-danger vel-rounded-sm" style="width:60px"></div>
    <p style="color:#64748b;font-size:11px;text-align:center;margin-top:4px">h-24</p>
  </div>
</div>