img style cover code example
Example 1: is there an img cover
body {
margin: 0;
}
img {
display: block;
width: 100vw;
height: 100vh;
object-fit: cover;
}
Example 2: css image cover
object-fit: contain;
body {
margin: 0;
}
img {
display: block;
width: 100vw;
height: 100vh;
object-fit: cover;
}
object-fit: contain;