473,399 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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
3 4376
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tyler Carver | last post by:
I am trying to create a table that 100% of the viewport with three rows. The top and bottom rows have a fixed height and the center row I want to take up the rest of the space. This work fine in...
9
by: Shank | last post by:
I need to setup a printable query results page. So far I've been using trial and error settings in CSS. I'm sure there's a better way. How can I do things like 1/2" margins all around and my table...
1
by: Tyler Carver | last post by:
I am trying to create a table that is 100% of the viewport with three rows. The top and bottom rows have a fixed height and the center row I want to take up the rest of the space. This work fine...
9
by: netclectic | last post by:
I'm dynamically adding options to a select list in javascript and i need to be able to set the height of the option, but setting style.height has not effect, I also tried style.pixelHeight but no...
12
by: Andy Jeffries | last post by:
Hi all, I want to write a function that given two elements will make their heights equal to the larger element. I've had a go at it and it works, but it makes both their heights larger than...
7
by: lauren quantrell | last post by:
A while back I got a requirement for the client to be able to adjust the relative heights of two subforms by click-dragging the mouse and I came up with a kludge solution using a border control...
2
by: Mikkel Faarup | last post by:
Hi All I am are experiencing difficulties setting Windows.Form heights above around 1000px on screens with the resolution set to 1024x768. The form is simply cut off and a scrollbar is set. The...
1
by: tshad | last post by:
Why are the text box heights of the input/file type textbox for uploading files a smaller height than a normal textbox? They have the exact same font and the same size font. But the heights...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.