Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>CSS Test: Borders on Table Elements (columns)</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<meta name="assert" content="Borders can be applied to table columns." />
<style type="text/css">
table
{
border-collapse: collapse;
}
col
{
border: 5px solid black;
}
td
{
width: 2em;
height: 2em;
}
</style>
</head>
<body>
<p>Test passes if the box is divided into four equal vertical strips.</p>
<table>
<col />
<col />
<col />
<col />
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>