Home  • Programming • CSS

How can i solve image expected size problem in IE8(Internet Explorer)...?

If you need to show a big picture in small size in your website with Internet Explorer-8, you write the following code in your script. Image size are determined by the max-width and max-height attribute. You should change the mix-height and max-width for your expected output.

<style>
.newsImage{
    width: auto; 
    max-width: 200px; 
    height: auto; 
   max-height: 200px;
}
<style>

<img href="Write your image path" name="newsImage" title="Image Name" />

Comments 0


Share

Copyright © 2024. Powered by Intellect Software Ltd