0

I embed images from Facebook links. While it works perfectly in Firefox, IE doesn't want to work with it. The div and the image tags are both generated in the HTML, but the image is absent. I've tried to look for most common IE bugs with images, but never found anything relevant.

Here's the link: http://spotbc.com/example.php

Grigory Kornilov
  • 366
  • 2
  • 4
  • 17

1 Answers1

1

Try to check if you have no specific system/network/proxy settings especially for IE. We can see your image fine here. Try empty/close your browser cache (try on a different machine if it helps).

Though you could leave out quotes for the src attribute of an img tag in an HTML5 document it is not consistent with the rest of your code. Review your generated HTML structure for best results. </br> is also no valid HTML.

Community
  • 1
  • 1
Arnaud Leyder
  • 6,674
  • 5
  • 31
  • 43
  • Hm, the problem is actually the "height" attribute. When I put an integer, it works as expected, but the "auto" mode doesn't manage to give it a size, so images are 1px high. Hm. – Grigory Kornilov Apr 18 '14 at 07:34
  • Well, the problem is that sometimes IE doesn't support the "auto" attribute for size. I just omit that and it works as expected. Answer found here: http://stackoverflow.com/questions/8673356/ie-doesnt-support-height-auto-for-images-what-should-i-use – Grigory Kornilov Apr 18 '14 at 07:36
  • 1
    ok so you got it sorted - good to know - that is weird though because I could see your images displayed in IE yesterday and so jumpingcode ... – Arnaud Leyder Apr 18 '14 at 08:42
  • Indeed. I had already tried it on different machines before posting, so it's even more weird. Maybe some kind of IE parameters we adopt in the enterprise, a little nothing like "html transformation" or xss filter. – Grigory Kornilov Apr 18 '14 at 09:33