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: Part of a cell border can be specified</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<meta name="assert" content="The border for a specific table cell can be specified under the collapsing border model." />
<style type="text/css">
table
{
border-collapse: collapse;
}
td
{
border: 1px solid black;
height: 50px;
width: 50px;
}
#cell
{
border-top: 10px solid blue;
}
</style>
</head>
<body>
<p>Test passes if there is a blue border across the top of the middle cell in the three-by-three table below.</p>
<table>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td id="cell"></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</body>
</html>