If you don’t have to support IE 6, you can just use this CSS.
yourImageSelector {
max-width: 150px;
max-height: 150px;
}
More Related Contents:
- How can I modify with css an image appended with javascript?
- How do I make two images fade in/out repeatedly? [closed]
- Programmatically change the src of an img tag
- Do HTML5 custom data attributes “work” in IE 6?
- Resize image with javascript canvas (smoothly)
- Should setting an image src to data URL be available immediately?
- Browser/HTML Force download of image from src=”data:image/jpeg;base64…”
- Input placeholders for Internet Explorer
- How to load all the images from one of my folder into my web page, using Jquery/Javascript
- how to show alternate image if source image is not found? (onerror working in IE but not in mozilla) [duplicate]
- How to start automatic download of a file in Internet Explorer?
- Detecting WebP support
- Disable dragging an image from an HTML page
- How to automatically allow blocked content in IE?
- How do I abort image load requests without using window.stop()
- “pointer-events: none” does not work in IE9 and IE10
- Changing the type in IE with JavaScript
- Make image fill div completely without stretching
- How to disable elements selection and resizing in contenteditable div?
- Why does Firefox react differently from Webkit and IE to “click” event on “select” tag?
- How to download a base64-encoded image?
- How to flip images horizontally with HTML5
- Change image in HTML page every few seconds
- JavaScript: Get image dimensions
- createImageBitmap alternative on Safari
- Images failing to load in IE with DOM: 7009 error (unable to decode) in console
- How to bind img src to data in Vue
- Center an Image vertically and horizontally using CSS
- onchange / onclick in a checkbox doesn’t work in IE
- canvas- Cropping images in different shapes