[Javascript] Image height and width
tedd
tedd at sperling.com
Thu Sep 6 12:54:16 CDT 2007
At 11:03 AM -0500 9/6/07, Del Wegener wrote:
>Good Morning;
>Normally the reference to an image on my web pages looks something like
>
><IMG src= ....../images_for_exercises/1_5_2a.gif" width=67 height=31
>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
Del:
I seldom add height and width values to html img tag attributes in
any of my work. Instead, I add width and height values (usually in
em's) in css and haven't experience any problems with any browsers
that I am aware. That way, I can also make the images enlarge/reduce
with zoom levels, like so:
http://php1.net/b/speech/
If you zoom that page, the image and page size resizes accordingly.
Off-topic, the speech thing isn't too shabby either (or so I think).
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
More information about the Javascript
mailing list