Skip to main content

Class-size

Utilities for controlling the background size of an element's background image.

Use the v-bg-sz-* utilities to control the size of an element. You can use
the feat: custom feature if you want the background size to suit your needs.

Table list sizes​

Class nameProperties
v-bg-sz-auto background-size: auto;
v-bg-sz-contain background-size: contain;
v-bg-sz-cover background-size: cover;
v-bg-sz-0background-size: 0%;
v-bg-sz--1background-size: -20%;
v-bg-sz--2background-size: -40%;
v-bg-sz--3background-size: -60%;
v-bg-sz--4background-size: -80%;
v-bg-sz--fullbackground-size: -100%;
v-bg-sz-1background-size: 20%;
v-bg-sz-2background-size: 40%;
v-bg-sz-3background-size: 60%;
v-bg-sz-4background-size: 80%;
v-bg-sz-fullbackground-size: 100%;

The table above presents several types of sizes with different variants.

Example Code​

index.html
<div>
<span class="v-bg-sz-cover" style="background-image('v.png')">
</span>
</div>