...

View Full Version : Align to left/right problem



exzrael
06-22-2006, 05:24 AM
Simple problem. I know I havent been using css, thats going to be fixed asap although I need alignment help. As seen below the text Player and Date/Time is aligned left and right, I would like to have $raden[0] to go left and [2] to right to match the above text. How could this easiest be done?


<div align="center">
<table border="0" id="table" width="200" cellpadding="2" bordercolorlight="#3E3854" bordercolordark="#3E3854">
<tr><th colspan="3" bgcolor="#c1c1c1"><? echo $class; ?></th></tr>
<tr>
<th align="left">
<p><font face="Verdana">Player</font></p>
</th>
<th align="right">
<p><font face="Verdana">Date/Time</font></p>
</th>
</tr>
<?php
while($raden = mysql_fetch_row($result))
{
echo '<tr><td>',$raden[0],'</td><td>',$raden[2],'</td></tr>';
}
?>
</table>
</div>

Nicklas
06-22-2006, 05:44 AM
echo '<tr><td style="text-align: left">',$raden[0],'</td><td style="text-align: right">',$raden[2],'</td></tr>';

exzrael
06-22-2006, 04:09 PM
echo '<tr><td style="text-align: left">',$raden[0],'</td><td style="text-align: right">',$raden[2],'</td></tr>';

Thank you. That was embarrasing to ask for :/



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum