Forum Moderators: open

Message Too Old, No Replies

Image showing in FF, not IE

Help!

         

TheRookie

12:27 am on May 18, 2005 (gmt 0)

10+ Year Member



I have an image that shows up in when I view my site in FF, but it won't show up in IE. The HTML seems fine - any ideas what to look for?

Thanks.

[edited by: tedster at 3:35 am (utc) on May 18, 2005]

MatthewHSE

1:05 am on May 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you using CSS positioning, z-index, or floats? If so, it could be that some other page element is simply "covering" the image.

TheRookie

1:05 am on May 18, 2005 (gmt 0)

10+ Year Member



Nope. :-)

Thanks, though.

tedster

1:48 am on May 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How about the html, just from around the reluctant image?

Any problems we uncover in a public thread will help many many people who read the thread now and in the future - and that's why we're here.

TheRookie

1:59 am on May 18, 2005 (gmt 0)

10+ Year Member



Well, around the image is pretty much a repeat of the image, so here's the HTML for one instance of it:

<img border="0" src="http://www.domain.com/images/img.gif" width="6%" height="6%" alt="alt text">

tedster

4:14 am on May 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's relatively uncommon to use percentages for the dimensions of an img element. The W3C says that "lengths expressed as percentages are based on the horizontal or vertical space currently available, not on the natural size of the image". Reference [w3.org]

If that is what you had in mind, the rest of the mark-up may be restricting what IE thinks is the available space. If that's not what you want, I suggest using pixels for width and height. That is the default if you simply say width="somenumberhere" - you don't use any units.

TheRookie

4:39 am on May 18, 2005 (gmt 0)

10+ Year Member



That did the trick. Thanks for the help, and I see your point about not needing the URL.

:-)