472,146 Members | 1,283 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

max height for tr?

Hi,

I wonder - after studying HTML4 and CSS2.1 recs - if it is possible to force
maximum row height. CSS2.1 sais that tr-height is minimum height for td.

In other words: Are there ways to force a table to show equaly high rows?

Best Regards,

Oliver
May 15 '06 #1
18 17607
Oliver Block <ne********@block-online.eu> wrote:
I wonder - after studying HTML4 and CSS2.1 recs - if it is possible to force
maximum row height. CSS2.1 sais that tr-height is minimum height for td.

In other words: Are there ways to force a table to show equaly high rows?


The question suggests that you are doing inappropriate things with
tables. Please explain why tabular data would need to be rendered in
equally high table rows.

--
Spartanicus
May 15 '06 #2
Spartanicus wrote:
Oliver Block <ne********@block-online.eu> wrote:
In other words: Are there ways to force a table to show equaly high rows?


The question suggests that you are doing inappropriate things with
tables. Please explain why tabular data would need to be rendered in
equally high table rows.


Because I want them to!?

What do you mean with inappropriate things?

Best Regards,

Oliver
May 15 '06 #3
Oliver Block <ne********@block-online.eu> wrote:
In other words: Are there ways to force a table to show equaly high rows?
The question suggests that you are doing inappropriate things with
tables. Please explain why tabular data would need to be rendered in
equally high table rows.


Because I want them to!?


Wrong answer.
What do you mean with inappropriate things?


"Tables should not be used purely as a means to layout document content"
http://www.w3.org/TR/html4/struct/tables.html

--
Spartanicus
May 15 '06 #4
Spartanicus wrote:
Please explain why tabular data would need to be rendered in equally high table rows.


Because he wants to? It's an entirely reasonable request, even for a
purist interpretation of "tabular data"

May 16 '06 #5
Spartanicus wrote:
Oliver Block <ne********@block-online.eu> wrote:
"Tables should not be used purely as a means to layout document content"
http://www.w3.org/TR/html4/struct/tables.html


Tables are definely a means to layout document content. Tabular data is
document content. What is meant in the TR is that it should not be used as
a substitute for Frames or divs that could be prositioned absolute in the
same way as frames.

Best Regards,

Oliver

May 16 '06 #6
On Tue, 16 May 2006, Oliver Block wrote:
Tables are definely a means to layout document content.
Only indirectly. Some browsers have no concept of "layout" (consider
a speaking browser...)
Tabular data is document content.


Indeed, and table markup is the way to mark-up the relationships of
those data items to each other.

Laying-out that data in a 2-D visual presentation is one very
effective way to present those relationships, for a certain range of
presentation situations. But don't confuse the presentation with the
content, because the WWW *will* separate them, when push comes to
shove - no matter what the author wants to happen.
May 16 '06 #7
Oliver Block <ne********@block-online.eu> wrote:
"Tables should not be used purely as a means to layout document content"
http://www.w3.org/TR/html4/struct/tables.html
Tables are definely a means to layout document content.


You appear confused as to what HTML is for, note the "M" in "HTML", it
stands for Markup.
Tabular data is
document content. What is meant in the TR is that it should not be used as
a substitute for Frames or divs that could be prositioned absolute in the
same way as frames.


I retract what I wrote above, you are confused period.

--
Spartanicus
May 16 '06 #8
VK

Oliver Block wrote:
Hi,

I wonder - after studying HTML4 and CSS2.1 recs - if it is possible to force
maximum row height. CSS2.1 sais that tr-height is minimum height for td.

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.

That's if you meant "How to make rows' heigh equal to the highest row".

If you mean just to make all rows of the same averagely enough heigh,
then how do you want to treat the content that does not fit? Scroll or
clip? Depending on that set the overflow property.

May 16 '06 #9
On Tue, 16 May 2006 20:37:08 +0100 Alan J. Flavell <fl*****@physics.gla.ac.uk> wrote:
| On Tue, 16 May 2006, Oliver Block wrote:
|
|> Tables are definely a means to layout document content.
|
| Only indirectly. Some browsers have no concept of "layout" (consider
| a speaking browser...)

What would they do? Announce what is in specific rows and columns as the
content is spoken? That could still be a form of layout.

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
May 16 '06 #10
In comp.infosystems.www.authoring.html Oliver Block <ne********@block-online.eu> wrote:

| I wonder - after studying HTML4 and CSS2.1 recs - if it is possible to force
| maximum row height. CSS2.1 sais that tr-height is minimum height for td.
|
| In other words: Are there ways to force a table to show equaly high rows?

Equal to what? A different row? Or just keeping all the cells in the
row of requal height. Can you show a page that's not giving you what
you want with TR and describe specifics on that page which should change?

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
May 16 '06 #11
Spartanicus wrote:
Oliver Block <ne********@block-online.eu> wrote:
Tables are definely a means to layout document content.


You appear confused as to what HTML is for, note the "M" in "HTML", it
stands for Markup.


The "L" in "HTML" stands for language
I retract what I wrote above, you are confused period.


You must feel lonely on the Moon.

Oliver

May 17 '06 #12
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? Or does that affect just the column
width?
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.

Best Regards,

Oliver
May 17 '06 #13
To further the education of mankind, Oliver Block
<ne********@block-online.eu> vouchsafed:
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.


Well, you could simple put a class on one cell in each row and style it to
the highest height possible.

--
Neredbojias
Infinity has its limits.
May 17 '06 #14
On Wed, 17 May 2006 02:57:20 +0200 Oliver Block <ne********@block-online.eu> wrote:
| Spartanicus wrote:
|
|> Oliver Block <ne********@block-online.eu> wrote:
|
|>>Tables are definely a means to layout document content.
|>
|> You appear confused as to what HTML is for, note the "M" in "HTML", it
|> stands for Markup.
|
| The "L" in "HTML" stands for language

Microsoft doesn't seem to see it as a language. They cut the "L" off on
all their default file extensions. <smiley>

--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/ http://ka9wgn.ham.org/ |
-----------------------------------------------------------------------------
May 17 '06 #15
VK

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.

May 17 '06 #16
VK wrote:
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?


Actually, I am not worrying about something. I am just figuring out my scope
to solve a problem I have with an internet application. Thanks for your
thoughts.

Best Regards,

Oliver

May 18 '06 #17
begin quotation
from ph**************@ipal.net <ph**************@ipal.net>
in message <e4*********@news1.newsguy.com>
posted at 2006-05-17T05:52
On Wed, 17 May 2006 02:57:20 +0200 Oliver Block <ne********@block-online.eu> wrote:
| The "L" in "HTML" stands for language Microsoft doesn't seem to see it as a language. They cut the "L" off on
all their default file extensions. <smiley>


Just because Microsoft says or does something, doesn't mean it's right,
but you probably knew this already. And newer versions of Windows are
not constrained by 8.3 filename formats or $DEITY-awful hacks of a
filesystem originally constrained to 8.3 filename limits.

--
___ _ _____ |*|
/ __| |/ / _ \ |*| Shawn K. Quinn
\__ \ ' < (_) | |*| sk*****@speakeasy.net
|___/_|\_\__\_\ |*| Houston, TX, USA
Jun 1 '06 #18
Oliver Block wrote:
Hi,

I wonder - after studying HTML4 and CSS2.1 recs - if it is possible to force
maximum row height. CSS2.1 sais that tr-height is minimum height for td.

In other words: Are there ways to force a table to show equaly high rows?


A possible approach (I did not test) for IE is to make a CSS class
equiHeight which has height=expression(...) where the ... is the
maximum height for each of the rows of the table. Then set the class
on each table cell to equiHeight. Better have the
margins/padding/border heights figured out pixel perfect though, or
your table will blow up. I believe IE will only run through the
calculations twice, and when it sees that none of the underlying data
is changing anymore, it will stop calculating.

Of course, the above is really javascript, so for that effort you could
run a function upon the onload event and have it work in other
browsers, too.

Csaba Gabor from Vienna

Jun 4 '06 #19

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Stanimir Stamenkov | last post: by
5 posts views Thread by Secret Guy | last post: by
12 posts views Thread by Kepler | last post: by
1 post views Thread by Mike Collins | last post: by
reply views Thread by Saiars | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.