Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css resize image to fit div no stretching

.div {
  background-image: url(../images/your-image.png);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #resize #image #fit #div #stretching
ADD COMMENT
Topic
Name
3+3 =