Re: More HTML3 DTD

Dave Raggett (dsr@hplb.hpl.hp.com)
Thu, 1 Dec 94 18:40:25 GMT


Michael Johnson thinks its difficult to implement VALIGN in table cells:

> It would be easy *IF* you assumed that the maximum of any HEIGHT attributes
> in a row was in fact the maximum height for the row, which may not be a
> valid assumption. If on the other hand you assume that any cell could be
> taller than the maximum HEIGHT attribute specified in the row, ...

There are no HEIGHT attributes defined in the draft HTML 3.0 dtd for rows
or cells for that matter. The browser makes a prepass to allocate suitable
columns widths (unless these are predefined by a colspec). It then formats
each cell, one at a time. The vertical offset for each cell is worked out
trivially at display time, as by then the row height is known (you don't know
it until you have formatted all cells in a row). This is another example of
how in computing you should put until tomorrow what you can't do today!

--
 Dave Raggett <dsr@w3.org> tel: +44 272 228046 fax: +44 272 228003
  Hewlett Packard Laboratories, Filton Road, Bristol BS12 6QZ, United Kingdom