When considering your options, it ultimately depends on what you are aiming for:
background-size:contain
: This will stretch the background to its maximum width and height to fit the container, with the rest of the space being background-repeated unless you set background-repeat:no-repeat
.
background-size:100% 100%;
: This will stretch your background to 100% of the width and height of the container, but this may distort the image proportions.
cover
: This option stretches the image so that the entire area is covered, cropping out the remaining parts of the image (as you have already noticed).
You can also utilize CSS by using percentage-based padding top/bottom to create a responsive container with specific proportions, allowing for full image coverage without cropping the sides.