Run
Online Code Editor
Example of Object-fit property
Original image
object-fit: scale-down;