Answers for "cover image in div"

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
0

fill image in div

img {
  width: 200px;
  height: 
  300px;
  object-fit: cover;
}
Posted by: Guest on August-23-2021

Browse Popular Code Answers by Language