467,923 Members | 1,440 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,923 developers. It's quick & easy.

Setting Row heights

cpt
I read that if one uses "table-layout:fixed"
then table rendering is speeded by setting row height. All my rows
are 285 px high.
1) Is this true?
2) If true, how does one set row-height for the table,
preferable with a CSS style?
Thanks, CMA

Jul 23 '05 #1
  • viewed: 4170
Share:
3 Replies
"cpt" <cp****@yahoo.com> wrote:

You posted this same message twice yesterday to alt.html and got some
good answers.
I read that if one uses "table-layout:fixed"
then table rendering is speeded by setting row height.
Where did you read this?
All my rows are 285 px high.
Do they contain only images?
1) Is this true?
Possibly. The main speed advantage to table-layout: fixed; is that it
saves the browser the need to re-evaluate the column widths as content
in lower rows is downloaded. There might be some small advantage with
regards to height but it will be smaller than the advantage gained
from setting the widths.

If you fix both the widths and the heights of the cells then what will
happen when the content is larger? i.e. if a user uses a larger font
size than you anticipated? It's quite easy to build a fixed table like
this where the text is illegible because text from several cells all
overlaps.
2) If true, how does one set row-height for the table,
preferable with a CSS style?


As you've already been told: tr {height: 285px;}

Steve

Jul 23 '05 #2
cpt
Hi Steve:
Thanks for the info. So I have to set the height for each {tr}?
Not worth it, and I have not already been told.

Jul 23 '05 #3
"cpt" <cp****@yahoo.com> wrote:
Hi Steve:
Thanks for the info.
What info? Please include some quoted material in your replies, so
that people have some idea what you're replying to.
So I have to set the height for each {tr}?
No, the code I gave you will set the height for every tr on the page.
Not worth it, and I have not already been told.


Toby Inkster told you -
http://groups-beta.google.com/group/...f5b75e62be57c1

Steve

Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Tyler Carver | last post: by
9 posts views Thread by Shank | last post: by
1 post views Thread by Tyler Carver | last post: by
9 posts views Thread by netclectic | last post: by
1 post views Thread by tshad | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.