Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

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;
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #scale #background #image #css
ADD COMMENT
Topic
Name
2+2 =