I have some images with height=auto because sometimes they are different heights whereas they are always the same width. It works in every browser but I.E., is there someth
Use height: auto together with width: auto and it is going to work in IE. If you specify only one of them, IE gets upset.
height: auto;
width: auto;
You can do width="100%"
and max-width="100px"
or whatever width you want and then simply height="auto"
. This worked for me.
BTW you may need min-width
width your wanted width too if your parent element doesn't have the width that you want for your image.
Just leave
height=auto
out. If it's not given it's "auto" by default...
i've tried all the solutions posted, and the only one that works is
height=100%
I found that adding min-height:1px
solves the issue. Not sure why, but, worked for me.
The solution was to add the typical IE fix :(
css:
height:auto !important;