Answers for "how to make an image cover in css"

CSS
0

how to cover full image in css

body {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
Posted by: Guest on March-03-2020
2

is there an img cover

body {
  margin: 0;
}
img {
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}
Posted by: Guest on February-26-2020

Code answers related to "how to make an image cover in css"

Browse Popular Code Answers by Language