R
richard
<!DOCTYPE HTML>
<html>
<head>
<title>Tables 101</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=windows-1252">
<style type="text/css">
table {Border-collapse:collapse; text-align:center; margin:auto;"}
td, th {padding:10px;}
.red {background:#f00;}
.blue {background:#00f;}
</style>
</head>
<body>
<table border="1">
<tr class="red"><th>One</th><th>Two</th><th>Three</th></tr>
<tr><td>A</td><td></td><td></td></tr>
<tr><td>B</td><td></td><td></td></tr>
<tr class="blue"><td>C</td><td></td><td></td></tr>
</table>
</body>
</html>
Now that, is how you properly code a table.
All text within the table is centered within a cell.
the table will automatically center itself within it's container.
The cells will be shown as 1 pixel wide in black with no whitespace between
the cells.
<html>
<head>
<title>Tables 101</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=windows-1252">
<style type="text/css">
table {Border-collapse:collapse; text-align:center; margin:auto;"}
td, th {padding:10px;}
.red {background:#f00;}
.blue {background:#00f;}
</style>
</head>
<body>
<table border="1">
<tr class="red"><th>One</th><th>Two</th><th>Three</th></tr>
<tr><td>A</td><td></td><td></td></tr>
<tr><td>B</td><td></td><td></td></tr>
<tr class="blue"><td>C</td><td></td><td></td></tr>
</table>
</body>
</html>
Now that, is how you properly code a table.
All text within the table is centered within a cell.
the table will automatically center itself within it's container.
The cells will be shown as 1 pixel wide in black with no whitespace between
the cells.