Oliver Block wrote:
VK wrote:
Oliver Block wrote: In other words: Are there ways to force a table to show equaly high rows?
It presumes that the table has to know the high of the highest cell
(content) before start any rendering. How do you suppose to do it over
CSS or HTML? You need an intensive scripting with hidden data then.
Doesn't it need to know that anyway?
It has no idea about the highest cell in the table until the content
for the very last cell is received, parsed and rendered.
You keep calling it "row height" which is technically not correct. <tr>
element doesn't give a damn about resulting height, it defined by the
highest cell in the given row. So your question - after rephrased
correctly - is: "How to make all cells in the table (or at least one
cell in each row) as high as the highest cell in the given table".
After being put in this way you see clearly the absurdum of this
requirement. Tables are being parsed and displayed row by row, upon
data arrival. Say you have 1000 rows with single line content in each
cells, but the row #666 contains a two lines cell in it and the row
#988 contains a cell with 5 lines disclaimer. When starting to render
the first row, the engine has no idea neither about #666 nor #988. They
are not parsed yet and even maybe not received yet from the server.
That's if you meant "How to make rows' heigh equal to the highest row".
No, I want each row to have the same height as all others. There is no
highest.
If all cells have the content of the same size, then the table will be
rendered with equal heigh rows w/o your participation, so what are you
worring about?
If some cells have higher content then others, then see the part one.
The only option is to instruct parser to render all cells of the same
heigh no matter is it too high or not heigh enough for the given
content. In this case you also have to instruct the parser what to do
if the fixed heigh if not enough for the given cell: clip it or add
scroll bars.