Forum Moderators: mack

Message Too Old, No Replies

Load time for nested tables

100% width versus definted width for tables

         

jetnovo

2:38 am on Mar 1, 2005 (gmt 0)

10+ Year Member



I know it's bad practice to get into nesting tables, but just of curiousity say my parent table was 1000px in width and I wanted a nested table of the same width, which of these two nested tables would process faster?


<table width="100%">
<tr>
<td width="50%">Test</td>
<td width="50%">Another Test</td>
</tr>
</table>

...or...


<table width="1000">
<tr>
<td width="500">Test</td>
<td width="500">Another Test</td>
</tr>
</table>

?

Obviously the time difference is too small for me to notice! But theoretically, which would load faster?

lZakl

3:48 am on Mar 1, 2005 (gmt 0)

10+ Year Member



I am just speaking out of thought, not knowledge, so take what I say to mean ... well nothing ;0)

My hypothesis on this would be that it would load faster given defined attributes for width. The browsers programming assumabley would take this number and plug it into a variable, whereas if it were given a percent, the browser would have to ask what the resolution was, and make the variable 50% of X. So in my mind, if the programming is the way I think it should be, it’s the difference between a user-defined variable, and an algorithm to GET that variable.

Just my 2¢

-- Zak