Per suggestion, I got rid of the inline styles and came up with this:
th {
width:50px;
font-size:12px;
text-align:center;
border:2px solid blue;
border-collapse:collapse;
}
The raw HTML code looks like this:
<table style = "margin:auto; border:2px solid blue; border-collapse:collapse">
<tr style="background-color:#73B0FF; border:2px solid blue; border-collapse:collapse">
<th> Tech<br>Number:</th>
<th style = "width:100px;"> Name:</th>
<th />
<th>Mon<br>5-11</th>
<th>Tues<br>5-12</th>
<th>Wed<br>5-13</th>
<th>Thur<br>5-14</th>
<th>Fri<br>5-15</th>
<th>Sat<br>5-16</th>
<th>Sun<br>5-17</th>
<th>Calls</th>
<th>Work<br />Orders</th>
</tr>
this fiddles -- http://jsfiddle.net/JBVKq/2/
However, when I put in the PHP code, the widths are ignored.
echo '<table style = "margin:auto; border:2px solid blue; border-collapse:collapse">';
echo '<tr style="background-color:#73B0FF">';
echo '<th> Tech<br>Number:</th>';
echo '<th style="width:150px"> Name:</th>';
echo '<th />';
for ($counter=0; $counter<$NumMonth; $counter++)
{
echo '<th>' . $W["$counter"] . '<br>' . $D["$counter"] . '</th>';
}
echo '<th>Calls</th>';
echo '<th>Work<br />Orders</th>';
echo "</tr>";
Here's a clue I just latched onto: I am setting up the code on a 13" MacBook Pro. The table goes from edge to edge. When I look at the page on a 17" screen on a winders box, the table goes edge to edge. The fiddle also runs from edge to edge.
Am I just nuts? Wait, don't answer that.