Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

keep aspect ratio of image css

img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}
 
PREVIOUS NEXT
Tagged: #aspect #ratio #image #css
ADD COMMENT
Topic
Name
6+4 =