Example #3.. Full background. Full-cover Background Image. possible". contain: increases or decreases the size of the image to fill the box whilst preserving its aspect-ratio. Imagehover.css is a lovingly crafted CSS library allowing you to easily implement scaleable image hover effects. The difference. SITEMAP. In the example, the values are "auto" and "85%" (colored blue), which causes the image height to be 85% of the div's height and the image width to be proportionally scaled according to the dimensions of the original image. The CSS object-fit property is used to specify how an or