I’m having problems with my images displaying in IE8, they work fine in Firefox and Chrome. I’m stumped at what could be the problem. Here is the link that I just stuck online.
actually my understanding is that that space is not necessary, it’s still done purely by convention (and I think it does make for slightly cleaner code…) that space was needed for Netscape 4 support!!! which obviously is moot by now…
Yes, it should, but no, it doesn’t matter. It’s not relevant to the issue.
What maya first said is what the OP should do to solve the problem: either use proper values for both width and height or completely forget about mentioning any of them.
Care to know why is that space used, or this is another technical matter you don’t care about? ; ) I mean, you don’t just say “you should have a space before your closing />” and not offer a reason other than a “probably, maybe”.
Sooo… I did put the doctype in before I posted the tread. Didn’t re upload the site. That slightly helped. It fixed like the centering of the page and stuff. Images still don’t appear… I don’t get why its working for some people but not for me. I tried putting numbers in both height and width, that didn’t work. Took the numbers out. That didn’t work. Tried the spacing at the end of the tag (which I don’t think matters) but that didn’t work. Any other suggestions?
Update:
Ok nevermind. I just commented stuff out and it works. I completely took out the height and width code and it works. Thanks so much. I’m still learning
I’m sorry, but you seem to be keen on not listening.
In your online mark up you still haven’t updated the height values. Put them there and let them there. As a rule, you should always specify dimensions (both of them) for replaced elements (like images) to avoid elements jumping all over the page when they get replaced, and to speed up the rendering.
Empty your cache: F12, click on Developer Toolbar, CTRL+R, and then try again: Click on page, Refresh (F5). I believe this is what makes you believe it’s not working when you try after completing height values. You old web page is displayed from cache rather then from the updated version.
It will work for you too, like it’s working for the rest of us.