To resize a image proportionally with CSS, simply set either width or height to auto. This should also work if the img html tag has width and height attributes set.
img.resize{
width:200px;
height: auto;
}
All the Code Snippets and Samples you need
To resize a image proportionally with CSS, simply set either width or height to auto. This should also work if the img html tag has width and height attributes set.
img.resize{
width:200px;
height: auto;
}
You must be logged in to post a comment.
RT @CodeSnippetsNET: How to resize a image proportionally with #CSS http://t.co/UDZHpnHffS #html #html5 #php #js #jquery #mysql #web #devel…
RT @CodeSnippetsNET: How to resize a image proportionally with #CSS http://t.co/UDZHpnHffS #html #html5 #php #js #jquery #mysql #web #devel…
RT @CodeSnippetsNET: How to resize a image proportionally with #CSS http://t.co/UDZHpnHffS #html #html5 #php #js #jquery #mysql #web #devel…
RT @CodeSnippetsNET: How to resize a image proportionally with #CSS http://t.co/UDZHpnHffS #html #html5 #php #js #jquery #mysql #web #devel…
RT @CodeSnippetsNET: How to resize a image proportionally with #CSS http://t.co/UDZHpnHffS #html #html5 #php #js #jquery #mysql #web #devel…