Answers for "html fit background image without stretching"

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 "html fit background image without stretching"

Browse Popular Code Answers by Language