lmf232s
07-18-2005, 09:54 AM
I have two tables.
1 table has the had which will remain tacked down(or will not move)
The other table has all the data that i read in from the database.
I have each tables width set to 999px.
I then set each <td>'s width to be the same in each table.
The problem is that they dont match up. The table that has the data from
the DB always seems to have bigger columns and thus the header does not
match up with the data. It looks something like this
<table width=999px>
<tr>
<td width=10px>Customer</td>
<td width=200px>Name</td>
</tr>
</table>
<table width=999px>
<tr>
<td width=10px>Joe Joe Inc</td>
<td width=200px>Chris Meyers</td>
</tr>
</table>
is there a better mesaurement to use then px. Is there a better way to pull this off.
I need to keep the header intack, so that as you scroll the records, the header columns stay in the same place and does not scroll witht the records.
Everything works, its just i cant seem to get the columns to line up correctly.
Any ideas.
1 table has the had which will remain tacked down(or will not move)
The other table has all the data that i read in from the database.
I have each tables width set to 999px.
I then set each <td>'s width to be the same in each table.
The problem is that they dont match up. The table that has the data from
the DB always seems to have bigger columns and thus the header does not
match up with the data. It looks something like this
<table width=999px>
<tr>
<td width=10px>Customer</td>
<td width=200px>Name</td>
</tr>
</table>
<table width=999px>
<tr>
<td width=10px>Joe Joe Inc</td>
<td width=200px>Chris Meyers</td>
</tr>
</table>
is there a better mesaurement to use then px. Is there a better way to pull this off.
I need to keep the header intack, so that as you scroll the records, the header columns stay in the same place and does not scroll witht the records.
Everything works, its just i cant seem to get the columns to line up correctly.
Any ideas.