Background Size & Cover
The background-size property controls how large a background image is rendered within its container.
Keyword Values
cover— scales the image to be as large as possible so the background area is completely covered. The image may be cropped.contain— scales the image to fit entirely within the background area without cropping. May leave empty space.auto— the default; uses the image's intrinsic dimensions.
Length and Percentage Values
Two values set width then height: background-size: 200px 100px. A single value sets width with height auto-calculated.