Answers for "how to set the background image size in css but the image is not stretch"

CSS
0

background image stretch to fill

background: url('../images/teaser.jpg') no-repeat center #eee;
background-size: cover;
Posted by: Guest on December-31-2021
1

html how to use a background image fill not stretch

.cover {
  object-fit: cover;
}
Posted by: Guest on March-02-2021

Code answers related to "how to set the background image size in css but the image is not stretch"

Browse Popular Code Answers by Language