November 19th, 2012, 04:41 PM
Image disappears in IE but works OK in all other browsers
I have created a small html file which demonstrates the problem I am having in a larger website, but if we can fix this small one, hopefully the same fix will work in the larger one!
Here is my HTML code (I have made the small amount of CSS inline):
<img style="clear: both;float:left; " src="YourLogoHere.jpeg" alt="Your Logo Here" border="0" width="96px" height=auto>
<h5>Thank you for supporting</h5>
<h5>Your School's Name Here</h5>
The jpeg called "YourLogoHere.jpg" which is in the same folder as this file is not visible when viewed in IE 7 or 8 (not sure about 9).
But it appears perfectly in all versions of Firefox, Chrome and Safari.
Can anybody tell me why?
November 20th, 2012, 03:04 AM
Looking at your code I would say it is your height: auto; that is causing you the problem in IE8 and below, move it into your CSS instead and see if that helps, or remove it all together as the height should be auto based on a width if a specific height is not set anyway (though who can guarantee anything in IE ).
If you put it into your CSS and you still have a problem, try
Also, remove your border=0 and style that in your CSS as well, using
November 20th, 2012, 03:18 PM
Thanks. Following your various instructions, it now works!
Much appreciated. Philip