programming-examples/html/Table/table_td_width.html

26 lines
390 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: 250px;border: 1px solid black;
border-collapse: collapse;}
td {border: 1px solid black;width: 33%;}
</style>
</head>
<body>
<table>
<tr>
<td>Cell 1</td>
<td>C 2</td>
<td>3</td>
</tr>
<tr>
<td>Cell 4</td>
<td>C 5</td>
<td>6</td>
</tr>
</table>
</body>
</html>