PDA

View Full Version : Font size does not work on tables


dhiebert
02-04-2006, 11:14 AM
I am using iSiloXC to generate output for my Palm Tungsten T3.

Why does the font-size setting not work on tables? I have also tried using <FONT SIZE=2> and <DIV STYLE="font-size: 8pt"> around the table. None of them affect the font size.

<TABLE STYLE="font-size: 8pt">
<COLGROUP span="1">
<THEAD>
<TR>
<TD> <I>Column 1</I> </TD>
<TD> <I>Column 2</I> </TD>
<TD> <I>Column 3</I> </TD>
</TR>
</THEAD>
<TBODY>
<TR><TD>10</TD><TD>This is the first line of the table.</TD><TD>Source 1</TD></TR>
<TR><TD>61–77</TD><TD>This is last line of the table.</TD><TD>Source 2</TD></TR>
</TBODY>
</TABLE>

iSilo
02-10-2006, 02:52 PM
The issue is a result of the implementation used to prevent styles outside a table from propagating into a table.

The workaround is to add the style attribute to the thead and tbody elements.

There are no specific plans at this time for addressing the issue in the implementation.

dhiebert
02-12-2006, 09:54 AM
Your suggested work-around is an adequate and acceptable approach.

However, while it seems understandable (and desirable) to me that a table might suspend font-size attributes currently in effect, I would think that such attributes explicitly stated in the TABLE element should apply to it.

In general, I think that iSilo should replicate as closely as possible the behaviors that are specified in HTML 4, since I would like to write documents one-time for a ll platforms, rather than have to custom-modify them to display properly on iSilo.