[thelist] Decimal align
.jeff
jeff at members.evolt.org
Mon Aug 27 20:05:13 CDT 2001
matt,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Matt Feldman
>
> Can anyone give me an example of how to align numbers
> in a table column by the decimal point?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
for data that has varying lengths for the decimal value:
<table>
<tr>
<td align="right">26</td>
<td>.</td>
<td>83</td>
</tr>
<tr>
<td align="right">13</td>
<td>.</td>
<td>913</td>
</tr>
<tr>
<td align="right">4</td>
<td>.</td>
<td>3</td>
</tr>
<tr>
<td align="right">1234</td>
<td>.</td>
<td>37823</td>
</tr>
</table>
or, for dollar amounts (or other numbers where the same number of characters
to the right of the decimal is the same across all numbers displayed):
<table>
<tr><td align="right">26.83</td></tr>
<tr><td align="right">13.92</td></tr>
<tr><td align="right">4.30</td></tr>
<tr><td align="right">1234.38</td></tr>
</table>
good luck,
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
More information about the thelist
mailing list