Click here to get back home

Table autoadjustment in the vertical

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Table autoadjustment in the vertical Mark 03-06-2006
Posted by Mark on March 6, 2006, 3:43 pm
Please log in for more thread options


When a table's cells grow vertically to fit it contents, is there a way
to force it to have uniform tallness among all its rows? I can set
minimum sizes using height in CSS, but this is not the same as having
all rows be of equal height. How can I do this?

Mark

Posted by Harlan Messinger on March 6, 2006, 4:03 pm
Please log in for more thread options


Mark wrote:
> When a table's cells grow vertically to fit it contents, is there a way
> to force it to have uniform tallness among all its rows? I can set
> minimum sizes using height in CSS, but this is not the same as having
> all rows be of equal height. How can I do this?

You can't, sorry. There's no mechanism for feedback between elements on
an HTML page.

Posted by Stephen Poley on March 6, 2006, 4:11 pm
Please log in for more thread options


On Mon, 06 Mar 2006 16:03:47 -0500, Harlan Messinger

>Mark wrote:
>> When a table's cells grow vertically to fit it contents, is there a way
>> to force it to have uniform tallness among all its rows? I can set
>> minimum sizes using height in CSS, but this is not the same as having
>> all rows be of equal height. How can I do this?
>
>You can't, sorry. There's no mechanism for feedback between elements on
>an HTML page.

Not in HTML or CSS, anyway. You could probably arrange something with
Javascript. But you'd have to let the table draw completely first and
then redraw; you'd have to ask yourself whether any cosmetic benefit
gained from having the rows the same height is sufficient to outweigh
the ugly 'flicker' effect.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/

Posted by Harlan Messinger on March 7, 2006, 10:07 am
Please log in for more thread options


Stephen Poley wrote:
> On Mon, 06 Mar 2006 16:03:47 -0500, Harlan Messinger
>>You can't, sorry. There's no mechanism for feedback between elements on
>>an HTML page.
>
> Not in HTML or CSS, anyway. You could probably arrange something with
> Javascript. But you'd have to let the table draw completely first and
> then redraw; you'd have to ask yourself whether any cosmetic benefit
> gained from having the rows the same height is sufficient to outweigh
> the ugly 'flicker' effect.
>
Is there any way in Javascript to get the actual rendered height of a block?

Posted by Stephen Poley on March 7, 2006, 3:59 pm
Please log in for more thread options


On Tue, 07 Mar 2006 10:07:01 -0500, Harlan Messinger

>Stephen Poley wrote:
>> On Mon, 06 Mar 2006 16:03:47 -0500, Harlan Messinger
>>>You can't, sorry. There's no mechanism for feedback between elements on
>>>an HTML page.
>>
>> Not in HTML or CSS, anyway. You could probably arrange something with
>> Javascript. But you'd have to let the table draw completely first and
>> then redraw; you'd have to ask yourself whether any cosmetic benefit
>> gained from having the rows the same height is sufficient to outweigh
>> the ugly 'flicker' effect.
>>
>Is there any way in Javascript to get the actual rendered height of a block?

I have used offsetHeight, but I haven't tried it on tables.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/

Similar ThreadsPosted
Vertical alignment of table cell contents in FireFox August 27, 2006, 5:55 am
negative vertical position? December 20, 2006, 3:09 pm
Vertical and Horizontal Frames that Scroll Together October 7, 2004, 5:35 pm
DIV text vertical-align solution January 23, 2005, 10:21 pm
Only Vertical Scroll bar no horizontal bars August 26, 2005, 3:44 am
How to save vertical scroll postion and later set it November 10, 2006, 6:08 am
How to increase vertical spacing of items within a ? January 10, 2007, 12:55 am
Vertical scroll bar with missing bottom arrow? July 22, 2004, 8:04 pm
The best way to solve browser's vertical scollbar problem June 26, 2007, 11:46 pm
Weird things about vertical spacing in HTML March 6, 2008, 2:16 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap