Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css keep image ratio

img {
  object-fit: cover;
  width: 100px;
  height:100px;
}
 
PREVIOUS NEXT
Tagged: #css #image #ratio
ADD COMMENT
Topic
Name
3+3 =