Html css doubts

difference btw background size contain and cover

1 Like

Hi rrnayak2609,

Cover tells the browser to make sure the image always covers the entire container, even if it has to stretch the image or cut a little bit off one of the edges.
Contain , on the other hand, says to always show the whole image, even if that leaves a little space to the sides or bottom.

1 Like