The background-position-y CSS property sets the initial vertical position, relative to the background position layer defined by background-origin for each defined background image. For more information, see the background-position property, which has been widely supported for much longer.
Note: The value of this property is overridden by any declaration of the background or background-position shorthand properties applied to the element after the background-position-x CSS property.
A list, each item consisting of: an offset given as a combination of an absolute length and a percentage, plus an origin keyword
the unique non-ambiguous order defined by the formal grammar
Aligns the top edge of the background image with the top edge of the background position layer.
Aligns the vertical center of the background image with the vertical center of the background position layer.
Aligns the bottom edge of the background image with the bottom edge of the background position layer.
A <length> value defining the offset of the given background image's vertical edge from the corresponding background position layer's vertical edge. If no edge is given, it refers to the top edge.
A <percentage> value defining the offset of the given background image's vertical edge from the corresponding background position layer's vertical edge relative to its height. If no edge is given, it refers to the top edge.
Thanks! Please check your inbox to confirm your subscription.
If you haven’t previously confirmed a subscription to a Mozilla-related newsletter you may have to do so. Please check your inbox or your spam filter for an email from us.
Why does MDN look different?
MDN is changing to focus just on documenting web technologies. All the same great content is still here; we’re just changing some visual elements and navigation, to help you more quickly find the web technology docs you’re looking for.
But don’t worry, MDN and Mozilla are still together! In fact, we're updating MDN’s look to reflect Mozilla's new logo and colors.