Re: <img ... height="x%">

On 6 Feb 2001, at 9:30, Irene VATTON wrote:
> In a structured approach it should be interpreted as a percent of 
> the enclosing element. In your case the enclosing element is <center> 
> and not <body>. I suspect other browsers to ignore the structure, and 
> to consider the window as the enclosing element.
> If your image was within a table do you think it was right to interpret
> the height as a percent of the table row or a percent of the window.

Unfortunately when the image is the sole object in the paragraph
there are also problems... perhaps in these cases (nul size), the
percent should be omitted and a full size (ie dimensions set by 
original image) used.

Since center and break convey no vertical size, the next closest 
structure should be used.  there are probably other elements that
should not be considered either.   

Using <td height="x%"><img height="100%"> may work but defies
  logic, readability, and common sense as height="100%" is redundant.

John Russell, VE3LL@RAC.CA
http://www.cgocable.net/~jrussel
Mystery readers may want to click on DOROTHYL

Received on Tuesday, 6 February 2001 10:18:50 UTC