Roster Alignment Problem

a sample row might contain

<tr>
<td width="25%">do stuff</td>
<td width="10%">do stuff</td>
<td width="40%">do stuff</td>
<td width="5%">do stuff</td>
<td width="20%">do stuff</td>
</tr>

the table will then align all the columns to your preset widths. The total of all the “widths” = 100%

sorry, im having no luck here. i understand what its doing, but i dont understand how to implement it to my bit of code. i gave it a shot but it didnt budge.

post your table code so we can see what you are doing, it will help us help you 

<h3><?php echo $title?></h3>

<?php

if(!$allpilots)

{

echo ‘There are no pilots!’;

return;

}

?>

<table id=“tabledlist” class=“tablesorter”>

<thead>

<tr>

<th>Pilot ID</th>

<th>Name</th>

<th>Rank</th>

<th>Flights</th>

<th>Hours</th>

</tr>

</thead>

<tbody>

<?php

foreach($allpilots as $pilot)

{

/*

To include a custom field, use the following example:

<td width=“10%”>

<?php echo PilotData::GetFieldValue($pilot->pilotid, ‘VATSIM ID’); ?>

</td>

For instance, if you added a field called “IVAO Callsign”:

echo PilotData::GetFieldValue($pilot->pilotid, ‘IVAO Callsign’);

*/

?>

<tr>

<td width=“10%”><a href=“<?php echo SITE_URL?>/index.php/profile/view/<?php echo $pilot->pilotid?>”>

<?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a>

</td>

<td width=“10%”>

<img src=“<?php echo Countries::getCountryImage($pilot->location);?>”

alt=“<?php echo Countries::getCountryName($pilot->location);?>” />

<?php echo $pilot->firstname.’ '.$pilot->lastname?>

</td>

<td width=“10%”><img src=“<?php echo $pilot->rankimage?>” alt=“<?php echo $pilot->rank;?>” /></td>

<td width=“10%”><?php echo $pilot->totalflights?></td>

<td width=“10%”><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td>

<?php

}

?>

</tbody>

</table>

can you post or pm me the link to your page - it looks ok from here other than the widths only add up to 50%, which should still make the columns align

Instead of 10%, I would take the width ofyour page in pixels, divide by the number of columns, and use that, if you’re using fixed width. But I might just be confusing you  more