Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how to set image size without changing aspect ratio in css

img {
  display: block;
  max-width:230px;
  max-height:95px;
  width: auto;
  height: auto;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #image #size #changing #aspect #ratio #css
ADD COMMENT
Topic
Name
8+3 =