background-size
Widely available
The background-size
CSS property scales or stretches a background based on the size of the element (with the contain
and cover
keywords), a length, or percentage.
To learn more, see
background-size at MDN.
Compatibility
- Chrome 21 Released on 2012-07-31
- Chrome Android 25 Released on 2013-02-27
- Edge 12 Released on 2015-07-29
- Firefox ≤72 Released before 2020-01-07
- Firefox for Android 79 Released on 2020-07-28
- Safari 5.1 Released on 2011-07-20
- Safari on iOS 4.2 Released on 2010-11-22