Einstein47
Programmer
Okay - this should be easy, but maybe not. Do the attributes cellpadding and cellspacing (and border for that matter) add to the width of a table cell or are they subtracted from the set size.
Example - I have a table (simplified) as follows:
You see my header is a separate table from my results set. I need to know if the 200 in the header is the same as the 2 cells of width 100 in the results. OR will the cellspacing and cellpadding cause the results widths to be wider than 200.
Is there an easy way to calculate table widths? AND is it standard between IE and Netscape (this is tables for heaven's sake, HTML 2 spec).
Anyone ?!?
Einstein47
("Vision without action is a daydream - Action without vision is a nightmare. Japanese Proverb"
Example - I have a table (simplified) as follows:
Code:
<TABLE border="0" cellspacing="2" cellpadding="2">
<TR class=head>
<TD width=200>Date / Time</TD>
</TR>
</TABLE>
<TABLE border="0" cellspacing="2" cellpadding="2">
<% while (it.hasNext)
{ %>
<TR>
<TD width=100><%=it.date%></TD>
<TD width=100><%=it.time%></TD>
</TR>
<% } %>
</TABLE>
You see my header is a separate table from my results set. I need to know if the 200 in the header is the same as the 2 cells of width 100 in the results. OR will the cellspacing and cellpadding cause the results widths to be wider than 200.
Is there an easy way to calculate table widths? AND is it standard between IE and Netscape (this is tables for heaven's sake, HTML 2 spec).
Anyone ?!?
Einstein47
("Vision without action is a daydream - Action without vision is a nightmare. Japanese Proverb"