How do I auto-resize an image to fit a ‘div’ container?
Do not apply an explicit width or height to the image tag. Instead, give it: Also, height: auto; if you want to specify a width only. Example: http://jsfiddle.net/xwrvxser/1/
Do not apply an explicit width or height to the image tag. Instead, give it: Also, height: auto; if you want to specify a width only. Example: http://jsfiddle.net/xwrvxser/1/