Docs / Background Repeat
Background Repeat
vel-src: colors.css
Utilities for controlling the repetition of an element's background image.
| Class | Properties |
|---|
| vel-bg-repeat | background-repeat: repeat |
| vel-bg-no-repeat | background-repeat: no-repeat |
| vel-bg-repeat-x | background-repeat: repeat-x |
| vel-bg-repeat-y | background-repeat: repeat-y |
| vel-bg-repeat-round | background-repeat: round |
| vel-bg-repeat-space | background-repeat: space |
Examples
Repeat vs no-repeat
<div style="display:flex;gap:12px;padding:1rem;background:#060b17;flex-wrap:wrap;align-items:flex-start;">
<div style="text-align:center;">
<div class="vel-bg-repeat" style="width:140px;height:80px;border-radius:6px;border:1px solid #1e2d45;background-image:url('https://placehold.co/30x30/7c5cfc/fff');background-color:#0d1422;"></div>
<p style="color:#64748b;font-size:0.75rem;margin-top:4px;">vel-bg-repeat</p>
</div>
<div style="text-align:center;">
<div class="vel-bg-no-repeat vel-bg-center" style="width:140px;height:80px;border-radius:6px;border:1px solid #1e2d45;background-image:url('https://placehold.co/30x30/a87fff/fff');background-color:#0d1422;"></div>
<p style="color:#64748b;font-size:0.75rem;margin-top:4px;">vel-bg-no-repeat</p>
</div>
<div style="text-align:center;">
<div class="vel-bg-repeat-x" style="width:140px;height:80px;border-radius:6px;border:1px solid #1e2d45;background-image:url('https://placehold.co/30x30/38bdf8/fff');background-color:#0d1422;background-position:center;"></div>
<p style="color:#64748b;font-size:0.75rem;margin-top:4px;">vel-bg-repeat-x</p>
</div>
</div>