Jump to content


Photo

different text positions in same <td></td>


  • Please log in to reply
1 reply to this topic

#1 cameeob2003

cameeob2003
  • Members
  • PipPipPip
  • Advanced Member
  • 79 posts

Posted 01 August 2006 - 06:35 PM

I am trying to run the following code:

<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="images/news_'. $table_background .'.jpg" height="19" align="left" valign="bottom" align="center"><font style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#CCCCCC"/>'. $title .' '. $date .'</td>
</tr>
<tr>
<td align="left" background="images/news_2.jpg"><font style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#000000"/>'. $content .'</td>
</tr>
<tr>
<td><img src="images/news_'. $td_background .'.jpg" width="652" height="17" alt=""></td>
</tr>
</table>
As you can see I want the "  '. $title.'  " and the  "  '.$date.'  " to be seperated on oposite sides of the <td> span but im not sure how to acomplish this. Any help is appreciated.

#2 yana

yana
  • Members
  • PipPipPip
  • Advanced Member
  • 45 posts
  • LocationToronto, Canada

Posted 02 August 2006 - 03:05 PM

You'll have to squeeze in a table inside the <TD></TD> tags and make sure you set the width of the table to 100%

<td background="images/news_'. $table_background .'.jpg" height="19" align="left" valign="bottom" align="center">

<table style="width:100%;font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#CCCCCC">
<tr>
<td>'. $title .'</td>
<td align="right"> '. $date .'</td>
</tr>
</table>

</td>

Yana




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users