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

> > From:	Irene VATTON [SMTP:Irene.Vatton@inrialpes.fr]
> > 
> >       <tr><td height="8%"><img SRC="sym-home.gif" height="100%"></td></tr>
> > 
> 	[DJW:]  
> 	This is invalid HTML (height may only be specified in pixels
> 	in TD elements) and attempts to create a circular reference,

height is defined as a Length
Length: The value (%Length; in the DTD) may be either a %Pixel; or a 
percentage of the available
horizontal or vertical space. Thus, the value "50%" means half of the 
available space.

> 	in that the only reasonable interpretation is % of row height,
> 	which depends on the maximum height of any cell in that row.

I agree with you, the use of percentage for heights generates a lot of 
problems.

> 	Also, if Amaya treats BR as being a paragraph break, and inserts
> 	that break into the object model seen by CSS, it is broken.
> 	BR is an inline element and cannot create a new block element.

The pseudo paragraph is generated just to keep in mind the area width in which
BR and images are set inline.

> 	[DJW:]  I suspect % heights on images are only useful when
> 	a containing element's height is specified using CSS.
> [DJW:]  
> 
> -- 
> --------------------------- DISCLAIMER ---------------------------------
> Any views expressed in this message are those of the individual sender,
> except where the sender specifically states them to be the views of BTS.
> 
> >  
> 

-- 
     Irene.

Received on Monday, 12 February 2001 03:48:41 UTC