“Cover Me!” Background-Size CSS for Large Image Backgrounds
While working on a few new projects recently, I needed a way to have a background image span a container (horizontally and vertically). I tried every measure of background-size you could think of: background-size: 100% auto; This worked, at least until you got to smaller resolutions. Then, the image would show the background color. So, I tried to work out when that happened and…