jPaul
New member
Hi Everybody,
I'm trying to create a table and need to format each column a little differently:
I want to align the text in Col-1 to the RIGHT, and set the background-color to a HEX-color.
I want to align the text in Col-2 to the LEFT, and set the background-color to a different HEX-color.
I hope to include these alterations in a PHP statement:
Am I on the right track? How can I include a [text-align: right] and [background-color: #cc0000] to the <td> tags?
Many Thanks,
Paul
I'm trying to create a table and need to format each column a little differently:
<table>
<tr>
<td> Col-1 </td>
<td> Col-2 </td>
</tr>
</table>
I want to align the text in Col-1 to the RIGHT, and set the background-color to a HEX-color.
I want to align the text in Col-2 to the LEFT, and set the background-color to a different HEX-color.
I hope to include these alterations in a PHP statement:
<?PHP
print "<tr><td>Your USER name is: </td><td>$uName</td></tr>\n";
print "<tr><td>Your eMAIL address is: </td><td>$uPassword</td></tr>\n";
?>
Am I on the right track? How can I include a [text-align: right] and [background-color: #cc0000] to the <td> tags?
Many Thanks,
Paul