W3C home > Mailing lists > Public > www-style@w3.org > May 1998

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

From: Greg Marr <gregm@alum.wpi.edu>
Date: Tue, 19 May 1998 14:24:09 -0400
Message-Id: <199805191828.OAA04089@antiochus-fe0.ultra.net>
To: Dmitry Beransky <dberansky@ucsd.edu>
Cc: www-style@w3.org
>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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:55 GMT