CSS - object-fit
object-fit
Specifies how the contents of a replaced element should be fitted to the box established by its used height and width
Property Variable Name
object-fit
Available Values for object-fit
Examples Using object-fit values
Example using object-fit
Code