object fit w3schools code example Example: object-fit values in css img{ object-fit: cover|contain|fill|none|scale-down; }