object-fit values in css code example
Example 1: object fit cover
img {
width: 200px;
height:
400px;
object-fit: cover;
}
Example 2: object-fit values in css
img{
object-fit: cover|contain|fill|none|scale-down;
}
img {
width: 200px;
height:
400px;
object-fit: cover;
}
img{
object-fit: cover|contain|fill|none|scale-down;
}