Posted by Rom on 01/14/06 16:12
Hello everybody,
here's my problem :
I have a table with 3 rows and 2 columns. Is it possible to right-align
the text in the left column without writing thrice "<td align="right">" ?
Here's the code :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><title></title></head>
<body>
<table border="1" width="20%">
<tr>
<td colspan="2" align="center">Data</td>
</tr>
<tr>
<td>A</td><td align="right">1</td>
</tr>
<tr>
<td>B</td><td align="right">2</td>
</tr>
<tr>
<td>C</td><td align="right">3</td>
</tr>
</table>
</body>
</html>
[Back to original message]
|