blob: 12e15529792e8b49092cb59fd76bf1f79cf85471 [file] [log] [blame]
<html>
<head>
<style type="text/css">
table { border: medium solid red; border-collapse: separate; border-spacing: 2em; background: yellow; empty-cells: hide; }
td { border: thin solid blue; vertical-align: middle; height: 50px; text-align: center; background: red; }
th { border: thin solid aqua; vertical-align: middle; height: 50px; text-align: center; background: blue; }
</style>
</head>
<body>
<p>todo works for ie, not for word</p>
<table>
<caption>This is a simple 3x3 table</caption>
<tr id="row1">
<th style='width: 20%;'>Header 1 </th>
<td style='width: 40%;'>Cell 1 </td>
<td style='width: 40%;'>Cell 2</td>
</tr>
<tr id="row2">
<th>Header 2 </th>
<td>Cell 3 </td>
<td>Cell 4</td>
</tr>
<tr id="row3">
<th>Header 3 </th>
<td>Cell 5 </td>
<td style='visibility: hidden;'></td>
</tr>
</table>
</body>
</html>