background-position-y
Widely availableSince 201697% of users
Specifically controls the vertical (top-to-bottom) position of a background image. It sets the vertical position on its own, without touching the horizontal one.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassic, with newer partsIt has worked everywhere since September 2016, and it keeps getting newer values.
Newer parts of background-position-y
Side-relative values (such as bottom 10%)Baseline Jan 2026
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
0%- Inherited
- No
- Applies to
- all elements
- Animation type
- repeatableList
Quick example
.hero {
background-image: url('mountain.jpg');
/* Pins the background to the bottom of the element */
background-position-y: bottom;
}Values
centertopbottomy-starty-endbackground-position-y browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2016.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
1+
49+
1+
12+Mobile
18+Android
49+Android
1+iOS