Docs / Justify Content

Justify Content

vel-src: flexbox.css

Utilities for controlling how flex and grid items are positioned along a container's main axis.

ClassProperties
vel-justify-startjustify-content: flex-start
vel-justify-endjustify-content: flex-end
vel-justify-centerjustify-content: center
vel-justify-betweenjustify-content: space-between
vel-justify-aroundjustify-content: space-around
vel-justify-evenlyjustify-content: space-evenly

Examples

Start, Center, Between

vel-justify-start

A
B

vel-justify-center

A
B

vel-justify-between

A
B
example.html
<p style="color:#64748b;font-size:11px;margin-bottom:4px">vel-justify-start</p>
<div class="vel-flex vel-justify-start vel-gap-3 vel-mb-4" style="background:#1a2236;padding:12px;border-radius:6px">
  <div class="vel-bg-primary vel-text-white vel-rounded-md" style="padding:8px 16px">A</div>
  <div class="vel-bg-primary vel-text-white vel-rounded-md" style="padding:8px 16px">B</div>
</div>
<p style="color:#64748b;font-size:11px;margin-bottom:4px">vel-justify-center</p>
<div class="vel-flex vel-justify-center vel-gap-3 vel-mb-4" style="background:#1a2236;padding:12px;border-radius:6px">
  <div class="vel-bg-success vel-text-white vel-rounded-md" style="padding:8px 16px">A</div>
  <div class="vel-bg-success vel-text-white vel-rounded-md" style="padding:8px 16px">B</div>
</div>
<p style="color:#64748b;font-size:11px;margin-bottom:4px">vel-justify-between</p>
<div class="vel-flex vel-justify-between vel-gap-3" style="background:#1a2236;padding:12px;border-radius:6px">
  <div class="vel-bg-danger vel-text-white vel-rounded-md" style="padding:8px 16px">A</div>
  <div class="vel-bg-danger vel-text-white vel-rounded-md" style="padding:8px 16px">B</div>
</div>