object-fit contain how is it working code example Example: object fit cover img { width: 200px; height: 400px; object-fit: cover; }