3 ms·
CSS property background-size (https://developer.mozilla.org/en/CSS/background-size https://developer.mozilla.org/en/CSS/background-size) has contain and cover p
by underwater 15y ago
CSS property background-size (https://developer.mozilla.org/en/CSS/background-size https://developer.mozilla.org/en/CSS/background-size) has contain and cover properties, which will scale the image to fit its container.
- pault 15y agoYes, I'm looking forward to dropping IE8 support so I can use this. :)