Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

How to make an image fill its container without stretching

.cover {
  object-fit: cover;
  width: 50px;
  height: 100px;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #image #fill #container #stretching
ADD COMMENT
Topic
Name
5+1 =