- From: Ian Hickson <exxieh@bath.ac.uk>
- Date: Tue, 19 May 1998 14:01:49 -0400 (EDT)
- To: David Norris <kg9ae@geocities.com>, www-html@w3.org
David Norris wrote: [huge snip of very readable prose] >The height and width attributes are not for specifying what the height >and width should be. They are for specifying what the height and width >are, thus part of the description of the image. Such as alt, etc. [huge snip of very readable prose] Unfortunately, you're wrong :-) The HTML4 spec changed this, and in HTML4 height and width are _override_ dimensions. IOW, they can be used to change the dimensions of the image. >From http://www.w3.org/TR/REC-HTML40/struct/objects.html#adef-width-IMG >width = length [CN] >Image and object width override. >height = length [CN] >Image and object {height} override. > >When specified, the width and height attributes tell user agents >to override the natural image or object size in favor of these values. > >When the object is an image, it is scaled. [...] It even mentions percentage widths as being valid. This is why I believe that the errata should point out that the attribute index is wrong, and that height and width *are* deprecated. The functionality of height and width is available in CSS1. -- Ian Hickson -----BEGIN GEEK CODE BLOCK----- Version: 3.12 Info: www.geekcode.com GIT/M/S d->-- s+: a--->? C++(+++)>$ U>*++++ P L+>+++++ E(+)>+++ W+++ N(+) o? K? w@ O- !M V- PS+ PE- Y+ PGP>+ t 5+++>++++ X- R+(+++) tv b++(+++) DI++ D++(---)>++++ G>+++ e(*)>+++++ h!()(--) !r y? ------END GEEK CODE BLOCK------
Received on Wednesday, 20 May 1998 03:05:10 UTC