RE: Are IMG height/width deprecated? Why not?

>So if I follow this correctly... Let's say I have a 640x480 image which I
>want to display as a thumbnail at 40x30 (for argument's sake, let's say I
>don't want to make a smaller copy).  The correct markup would be:
>
><IMG src="some.img" alt="Some picture of something." height="480"
>width="640 style="height: 30px; width:40px;">
>
>Right?  But wouldn't this break backward compatibility with non-CSS
>compliant browsers.  Rendered by such a browser, the image will be 16x
>bigger.

Only with those browsers that use the width and height to actually resize
the image.  The original intent was simply to allocate space in the page
for the image so the rest of the page could be rendered around it.  Some
browsers chose to implement the *may* resize the image to fill the box, and
others didn't.
--
Greg Marr
gregm@alum.wpi.edu
"We thought you were dead." 
"I was, but I'm better now." - Sheridan, "The Summoning"

Received on Tuesday, 19 May 1998 14:28:04 UTC