Answers for "css scale background image to div size"

CSS
0

how to scale down background image in css

.bgSizeCover {
  background-image: url(https://www.mozilla.org/media/img/logos/firefox/logo-quantum.9c5e96634f92.png);
  background-size: cover;
  width: 100%;
  height: 100%;
  border: 2px solid;
  color: pink;
  resize: both;
  overflow: scroll;
}
Posted by: Guest on June-28-2021
0

resize background image to size of div

background-size: 300px 150px;
Posted by: Guest on October-01-2021

Code answers related to "css scale background image to div size"

Browse Popular Code Answers by Language