programming-examples/html/Table/table_vertical_align.html

28 lines
533 B
HTML
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
<!DOCTYPE html>
<html>
<head>
<title>Html5</title>
<meta charset="UTF-8">
<style type="text/css">
table {width: 140px;border: 1px solid black;
border-collapse: collapse;}
td {border: 1px solid black;vertical-align: top;}
</style>
</head>
<body>
<table>
<tr>
<td style="width: 10%">1</td>
<td>xxxxx xxxxx xxxxx xxxxx xxxxx</td>
</tr>
<tr>
<td style="width: 10%">2</td>
<td>xxxxx xxxxx</td>
</tr>
<tr>
<td style="width: 10%">3</td>
<td>xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx</td>
</tr>
</table>
</body>
</html>