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: 155Edge
12+Supportedsince Jul 29, 2015
Current: 154Firefox
1–12Not supported
13+Supportedsince Jun 5, 2012
Current: 157Safari
1–6Not supported
7+Supportedsince Oct 22, 2013
Current: 27MobileChrome Android
18–18Not supported
25+Supportedsince Feb 27, 2013
Current: 155Firefox Android
4–10Not supported
14+Supportedsince Jun 26, 2012
Current: 157Safari iOS
1–6Not supported
7+Supportedsince Sep 18, 2013
Current: 27How 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-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| background-position | 1 | 12 | 1 | 1 | 18 | 4 | 1 |
| background-position-x | 1 | 12 | 49 | 1 | 18 | 49 | 1 |
| background-position-x.center | 1 | 12 | 49 | 1 | 18 | 49 | 1 |
| background-position-x.left | 1 | 12 | 49 | 1 | 18 | 49 | 1 |
| background-position-x.right | 1 | 12 | 49 | 1 | 18 | 49 | 1 |
| background-position-x.side-relative_values | 144 | 144 | 49 | 15.4 | 144 | 49 | 15.4 |
| background-position-y | 1 | 12 | 49 | 1 | 18 | 49 | 1 |
| background-position-y.bottom | 1 | 12 | 49 | 1 | 18 | 49 | 1 |
| background-position-y.center | 1 | 12 | 49 | 1 | 18 | 49 | 1 |
| background-position-y.side-relative_values | 144 | 144 | 49 | 15.4 | 144 | 49 | 15.4 |
| background-position-y.top | 1 | 12 | 49 | 1 | 18 | 49 | 1 |
| background-position.bottom | 1 | 79 | 1 | 1 | 18 | 4 | 1 |
| background-position.center | 1 | 79 | 1 | 1 | 18 | 4 | 1 |
| background-position.left | 1 | 79 | 1 | 1 | 18 | 4 | 1 |
| background-position.multiple_backgrounds | 1 | 12 | 3.6 | 1.3 | 18 | 4 | 1 |
| background-position.right | 1 | 79 | 1 | 1 | 18 | 4 | 1 |
| background-position.side-relative_values | 25 | 12 | 13 | 7 | 25 | 14 | 7 |
| background-position.top | 1 | 79 | 1 | 1 | 18 | 4 | 1 |