Background Position

Set the background image position within an element.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari

bp-b
background-position: bottom;
bp-c
background-position: center;
bp-l
background-position: 0;
bp-lb
background-position: 0 100%;
bp-lt
background-position: 0 0;
bp-r
background-position: 100%;
bp-rb
background-position: 100% 100%;
bp-rt
background-position: 100% 0;
bp-t
background-position: top;

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:bp-(value)
Small640px
md:bp-(value)
Medium768px
lg:bp-(value)
Large1024px
xxl:bp-(value)
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:bp-(value)