background-position

Sets background image position. bgpc (center) is most common. Adjust based on image focal point.

Class List

ClassCSSDescription
bgpcbackground-position: centerCenter aligned (most common)
bgptbackground-position: topTop aligned. Ideal for portraits
bgpbbackground-position: bottomBottom aligned
bgplbackground-position: leftLeft aligned
bgprbackground-position: rightRight aligned
bgptlbackground-position: top leftTop left
bgptrbackground-position: top rightTop right
bgpblbackground-position: bottom leftBottom left
bgpbrbackground-position: bottom rightBottom right

Usage Examples

<!-- Center Background (Default Pattern) -->
<div class="bsc bgrn bgpc h40rem"></div>

<!-- Portrait photo — top focus -->
<div class="bsc bgrn bgpt h30rem br8px"></div>

<!-- Decorative image — bottom right placement -->
<div class="bsct bgrn bgpbr h20rem"></div>

Tips

Use with cover

When filling with bsc, cropped area varies. Control focal point with position. bgpt (top) suits portraits.