Docs / Justify Self
Justify Self
vel-src: flexbox.css
Utilities for controlling how an individual grid item is aligned along its inline axis.
| Class | Properties |
|---|
| vel-justify-self-auto | justify-self: auto |
| vel-justify-self-start | justify-self: start |
| vel-justify-self-end | justify-self: end |
| vel-justify-self-center | justify-self: center |
| vel-justify-self-stretch | justify-self: stretch |
Examples
Per-item inline alignment
self-start
self-center
self-end
<div class="vel-grid vel-grid-cols-3 vel-gap-3" style="background:#1a2236;padding:12px;border-radius:6px">
<div class="vel-justify-self-start vel-bg-primary vel-text-white vel-rounded-md" style="padding:8px 14px;font-size:12px">self-start</div>
<div class="vel-justify-self-center vel-bg-success vel-text-white vel-rounded-md" style="padding:8px 14px;font-size:12px">self-center</div>
<div class="vel-justify-self-end vel-bg-danger vel-text-white vel-rounded-md" style="padding:8px 14px;font-size:12px">self-end</div>
</div>