[Javascript] Image height and width
Peter Brunone
peter at brunone.com
Thu Sep 6 11:16:23 CDT 2007
Having just been smacked down for an incorrect assertion or two, I'm a little timid, but I'll give this one a shot with what I know :)
Assigning height and width to an image allows the browser to lay out content as it will be when all content is loaded, i.e. if something flows around or next to the image, you won't see it all squished up and then pushed aside when the image finishes loading and the page re-renders to accommodate it.
That's what I've got, anyway.
Cheers,
Peter
----------------------------------------
From: "Del Wegener" <del at delweg.com>
Sent: Thursday, September 06, 2007 11:08 AM
To: javascript at lists.evolt.org
Subject: [Javascript] Image height and width
Good Morning;
Normally the reference to an image on my web pages looks something like
<img height=31 src="....../images_for_exercises/1_5_2a.gif%22" width=67
align=absmiddle>
If I omit height and width I don't observe any change.
Is there a strong reason for including height and width?
Will my pages break if I stop including height and width?
What will go wrong?
Del
_______________________________________________
Javascript mailing list
Javascript at lists.evolt.org
http://lists.evolt.org/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070906/81c2ee06/attachment.htm>
More information about the Javascript
mailing list