DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CSS
how to set image size without changing aspect ratio in css
img
{
display
:
block
;
max-width
:
230
px
;
max-height
:
95
px
;
width
:
auto
;
height
:
auto
;
}
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#set
#image
#size
#changing
#aspect
#ratio
#css
ADD COMMENT
Topic
COMMENT
Name
6+5 =
Submit