Forum Moderators: coopster

Message Too Old, No Replies

Formatting gone mad?!

Why is it not formatting correctly?

         

Courtman

5:45 pm on Jul 6, 2004 (gmt 0)

10+ Year Member



I am using the following HTML/PHP code:

<td width="30" class="tblText" align="right">
<?=$a_row[airframehrs]?>
</td>
<td width="30" class="tblText" align="right">
<?=$a_row[enginehrs]?>
</td>
<td width="25" class="tblText" align="right">
<?php
$hrstogo = ($a_row[tachoatchk] + 50) - $a_row[airframehrs];
print $hrstogo;
?>

However, the first two columns are not aligning right, but the third is. Am I missing something obvious here?

dreamcatcher

6:13 pm on Jul 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The third has no closing </td> tag. Have you checked your style sheet? Maybe something is overriding the formatting?

Courtman

9:16 am on Jul 7, 2004 (gmt 0)

10+ Year Member



Sorry, didn't copy the third </td> line, but that column works fine. There is nothing in the CSS that would cause it, to be sure I've even removed the CSS tag.

The only thing I can think of is that there is something weird coming from the table which is leaving spaces on the right of the number. Would that be an issue and can I strip them off?