I'm taking an XHTML class right now and I'm hitting a wall on how to do part of an assignment. We have to recreate this table.

I have it almost done, but I'm hitting a wall when it comes to coloring in the lines. The border color stuff that I know how to do will do the outside border of the table, but the inside lines are not getting the color applied to them. I end up with this.

I suppose I could set another font color in the style, and use a span tag in each of the 9 cells, but it just seems like way to much duplication of effort. Is there another way?
Here is my code so far:
Code: Select all
<?xml version="1.0" encoding="us-ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Tables</title>
<style type="text/css">
table {
color: red;
background-color: white;
font-weight:bold; text-align:center; font-family: sans-serif;}
.changeTypeface
{background-color: white; color: black; font-weight:normal}
</style>
</head>
<body>
<table cellspacing="0" bordercolor="#808000" border="1" width="575">
<tr>
<td width="115" rowspan="4">1
<br />
<span class="changeTypeface">The quick<br />
brown fox<br />
jumped... <i>ahh<br />
who cares</i></span>
</td>
<td colspan="3">2</td>
<td rowspan="2">3</td>
</tr>
<tr>
<td rowspan="2">4</td>
<td colspan="2">5</td>
</tr>
<tr>
<td>6</td>
<td>7</td>
<td rowspan="2">8</td>
</tr>
<tr>
<td colspan="3">9</td>
</tr>
</table>
</body>
</html>
I'm sure the answer goes in here somewhere
Code: Select all
table {
color: red;
background-color: white;
font-weight:bold; text-align:center; font-family: sans-serif;}