coderef

background-positionBaseline · Widely available

The background-position CSS property offsets the initial position of background images relative to the background origin.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jul 29, 2015. Widely available since Jan 29, 2018.

Browser support

DesktopChrome
1–24Not supported
25+Supportedsince Feb 21, 2013
Current: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
1–12Not supported
13+Supportedsince Jun 5, 2012
Current: 157
Safari
1–6Not supported
7+Supportedsince Oct 22, 2013
Current: 27
MobileChrome Android
18–18Not supported
25+Supportedsince Feb 27, 2013
Current: 155
Firefox Android
4–10Not supported
14+Supportedsince Jun 26, 2012
Current: 157
Safari iOS
1–6Not supported
7+Supportedsince Sep 18, 2013
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: background-position.

Feature detection

CSS · check before using
@supports (background-position: initial) {
  /* styles that rely on background-position */
}

/* or in JavaScript */
if (CSS.supports("background-position", "initial")) {
  // use it
}

Sub-features

Support for each part of the feature (18). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
background-position112111841
background-position-x11249118491
background-position-x.center11249118491
background-position-x.left11249118491
background-position-x.right11249118491
background-position-x.side-relative_values1441444915.41444915.4
background-position-y11249118491
background-position-y.bottom11249118491
background-position-y.center11249118491
background-position-y.side-relative_values1441444915.41444915.4
background-position-y.top11249118491
background-position.bottom179111841
background-position.center179111841
background-position.left179111841
background-position.multiple_backgrounds1123.61.31841
background-position.right179111841
background-position.side-relative_values251213725147
background-position.top179111841