Wednesday, June 24, 2009

Solid border of table

Solid border of table.


<!DOCTYPE html>
<html>
<head>
<style>
table
{
border-collapse:collapse;
}
table, td, th
{
border:2px solid red;
}
</style>
</head>

<body>
<table>
<tr>
<th>Test1</th>
<th>Test2</th>
</tr>
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
</body>
</html>

No comments:

Post a Comment