td char alignment

J

josh

Hi why this code does not work?

the alignment is not on the dot ... of the price

<table border="1" width="50%">
<colgroup align="char" char=".">
<col></col>
<col style="background-color: yellow;"></col>
</colgroup>
<thead>
<tr>
<th>Type</th><th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<td>Apple</td><td>10.33</td>
</tr>
<tr>
<td>Pear</td><td>1.44</td>
</tr>
</tbody>
</table>
 
J

Jonathan N. Little

josh said:
Hi why this code does not work?

the alignment is not on the dot ... of the price

<table border="1" width="50%">
<colgroup align="char" char=".">

Because browser support it this is poor. I don't know of any that
support it.

My advice, format numbers with same number of decimal places and right
align.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top