Background Position
Controls the position of the background image of an element.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
bp-bbackground-position: bottom;bp-cbackground-position: center;bp-lbackground-position: left;bp-lbbackground-position: left bottom;bp-ltbackground-position: left top;bp-rbackground-position: right;bp-rbbackground-position: right bottom;bp-rtbackground-position: right top;bp-tbackground-position: top;<div class="d-g g-1 gtc-3"> <div class="bp-lt d-24" style="background-image:url(/img/clivia.jpg)"></div> <div class="bp-t d-24" style="background-image:url(/img/clivia.jpg)"></div> <div class="bp-rt d-24" style="background-image:url(/img/clivia.jpg)"></div> <div class="bp-l d-24" style="background-image:url(/img/clivia.jpg)"></div> <div class="bp-c d-24" style="background-image:url(/img/clivia.jpg)"></div> <div class="bp-r d-24" style="background-image:url(/img/clivia.jpg)"></div> <div class="bp-lb d-24" style="background-image:url(/img/clivia.jpg)"></div> <div class="bp-b d-24" style="background-image:url(/img/clivia.jpg)"></div> <div class="bp-rb d-24" style="background-image:url(/img/clivia.jpg)"></div></div>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Responsive design
Target different screen sizes by adding breakpoint prefixes. Styles apply from the specified breakpoint and up.
Target specific viewport sizes with breakpoint prefixes
sm:-[value]Small≥640px
md:-[value]Medium≥768px
lg:-[value]Large≥1024px
xxl:-[value]Extra Large≥1536px
Hover state variant
Apply styles conditionally when users hover over an element using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:-[value]