Power Your Software Testing with AI and Cloud

Supercharge QA with AI for Faster & Smarter Software Testing

Next-Gen App & Browser Testing Cloud

background-position-x & background-position-y

The background-position-x-y CSS longhand properties help you to define the x or y positions of the background image separately.

Last updated on : 2025-11-11

Browser Versions

IEIE

EdgeEdge

FirefoxFirefox

ChromeChrome

SafariSafari

OperaOpera

5.5 - 11
Test on IE 5.5 - 11 ...
12 - 142
Test on Edge 12 - 142 ...
2 - 48
Test on Firefox 2 - 48 ...
49 - 147
Test on Firefox 49 - 147 ...
4 - 145
Test on Chrome 4 - 145 ...
3.2 - 26.2
Test on Safari 3.2 - 26.2 ...
9.5 - 12
Test on Opera 9.5 - 12 ...
15 - 122
Test on Opera 15 - 122 ...

...Fully Supported

...Partially

...No Support

Formal Definition

Inherited

no

Applies to

all elements

Percentages

refer to height of background positioning area minus height of background image

Initial value

0%

Animation type

discrete

Computed value

A list, each item consisting of: an offset given as a combination of an absolute length and a percentage, plus an origin keyword

Specifications

CSS Backgrounds and Borders Module Level 4 # background-position-longhands

Syntax

/* Keyword values */
 background-position-y: top;
 background-position-y: center;
 background-position-y: bottom;
 /* <percentage> values */
 background-position-y: 25%;
 /* <length> values */
 background-position-y: 0px;
 background-position-y: 1cm;
 background-position-y: 8em;
 /* Side-relative values */
 background-position-y: bottom 3px;
 background-position-y: bottom 10%;
 /* Multiple values */
 background-position-y: 0px, center;
 /* Global values */
 background-position-y: inherit;
 background-position-y: initial;
 background-position-y: revert;
 background-position-y: unset;

Browser Compatibility

background-position-x & background-position-y on IE is fully supported on all IE versions.

background-position-x & background-position-y on Edge is fully supported on all Edge versions.

background-position-x & background-position-y on Firefox is fully supported on 49-147, and not supported on 2-48 Firefox versions.

background-position-x & background-position-y on Chrome is fully supported on all Chrome versions.

background-position-x & background-position-y on Safari is fully supported on all Safari versions.

background-position-x & background-position-y on Opera is fully supported on 15-122, and not supported on 9.5-12 Opera versions.

background-position-x & background-position-y on Safari on iOS is fully supported on all Safari on iOS versions.

background-position-x & background-position-y on Android Browser is fully supported on all Android Browser versions.

background-position-x & background-position-y on Opera Mobile is fully supported on 64-80, and not supported on 10-12 Opera Mobile versions.

background-position-x & background-position-y on Chrome for Android is fully supported on all Chrome for Android versions.

background-position-x & background-position-y on Firefox for Android is fully supported on all Firefox for Android versions.

background-position-x & background-position-y on Samsung Internet is fully supported on all Samsung Internet versions.

100
Hightooltip

Overall Browser Compatibility Score

Note:background-position-x & background-position-y shows a browser compatibility score of 100. This is a collective score out of 100 to represent browser support of a web technology. The higher this score is, the greater is the browser compatibility. The browser compatibility score is not a 100% reflection for every browser and the web technology support. However, it does give you an estimate on how much you should rely on a particular web technology in terms of browser compatibility.


Test on 3000+ browsers for background-position-x & background-position-y & more

Test your website for background-position-x & background-position-y and other web technologies. Get 100 FREE automation test minutes!

Test Now...

More Web Technologies

  • CSS
  • HTML 5
  • SVG
  • JS API
  • Security
  • JavaScript
  • Other Web Technologies
ShadowLT Logo

Start your journey with LambdaTest

Get 100 minutes of automation test minutes FREE!!

Did you find this page helpful?

Helpful

NotHelpful