programming-examples/html/Table/table_horizontal_align.html
2019-11-15 12:59:38 +01:00

26 lines
582 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Html5</title>
<meta charset="UTF-8">
<style type="text/css">
table {width: 290px;border: 1px solid black;
border-collapse: collapse;}
td {border: 1px solid black;width: 33%;}
</style>
</head>
<body>
<table>
<tr>
<td style="text-align: left;">Product 1</td>
<td style="text-align: center;">In stock</td>
<td style="text-align: right;">3,43 €</td>
</tr>
<tr>
<td style="text-align: left;">Product 2</td>
<td style="text-align: center;">In order</td>
<td style="text-align: right;">6,72 €</td>
</tr>
</table>
</body>
</html>