Quote:
Originally Posted by wackypanda
Does this go here?
|
I think it goes in the
Programming subforum.
You could attach example code in a small HTML file so we could test and look inside, but
Quote:
as long as the width and height attributes are set
|
it's the browser's fault.
BUT I doubt that any of those browsers is wrong about such a basic thing. I think it's likelier that there's something wrong with the code, and then some browsers are more robust in tolerating and interpreting deviations from the HTML standard.
Let me guess, are you using quotation marks around every attribute value? The standard is double quotation marks, maybe single ones are just as good, but to be sure it should look like this, please note all the quotation marks:
HTML Code:
<img src="/images/foo.png" alt="This is an image" width="400" height="300"/>
Oh by the way, I remember reading a long time ago that there was a bug in Firefox that it couldn't read self-closing tags right if there wasn't a whitespace before the closing />, for example it needed <br /> and would not work with <br/> which is correct HTML. (By self-closing tags I mean the ones that don't come in pairs of <xxx...> and </xxx>, but a single <xxx.../>.) It was ages ago so it must have been fixed, but still give that a shot, or in case you're using an old version of FF. In this case Firefox would need a whitespace before /> like this:
HTML Code:
<img src="/images/foo.png" alt="This is an image" width="400" height="300" />