Have asked this before but will try and explain better.

Have incoming data to a php file that gets output to aonther php file in html format.

So what i do is, on the first run open a txt file with a sytlesheet and 7 headers then add this to the ouputted php/html, a blank text file(flag) is then created so that this only happens on the first run so i have a heading with 7 td's. After that the php/html is opened for append and the incoming data is added.

so looks like, (these are different sizes of words and use td tags(th tags instead?)

|Head1| |Head2| |Head3| |Head4| |Head5| |Head6| |Head7|

|cell1| |cell2| |cell3| |cell4| |cell5| |cell6||cell7|
|cell1| |cell2| |cell3| |cell4| |cell5| |cell6||cell7|

and on.....
the txt file with the sytlesheet has this,


HTML Code:
<html>
<head>
<title>Title</title>
<style>

* { font-family:verdana; font-size:11px; }
body { margin-top:10px; margin-right:10px; margin-bottom:10px; margin-left:10px; background-color: #123456; 
background-image:url('image.jpg');
	background-attachment:fixed;
	background-repeat:repeat;
}
</style>

</head>
<body>
<img src = "image.gif">

<table cellspacing="10"><tr>
<td><td >head1</td>
<td>head2</td>
<td>head3</td>
<td>head4</td>
<td>head5</td>
<td>head6</td>
<td>head7</td>
</tr></table>
<tr><td>&nbsp;</td></tr>
Now i need all cells to be a fixed width and word wrap if needed and also need to align the headers with the cells but just cant get it, all out of alignment as the incoming data's cell will reszie according to the size of the data.

any ideas?