The Question : 1634 people think this question is useful How do you auto-resize a large image so that it will fit into a smaller width div container whilst maintaining its width:height ratio? Example: stackoverflow.com – when an image is inserted onto the editor panel and the image is too large to fit onto the