Jump to content

how do you apply cell styling during echoing php code?


dbradbury

Recommended Posts

its not working for me :s :(

 

		echo '<tr><td class="tsubject"><u><b>'.$row['post_subject'].'</b></u></td>
        <td align="right" class="tposted">Posted: </td><td class="tdate"><i>'.$date.'</i></td></tr>
        <tr align="center"><td colspan="3" class="tinfo" style="padding-left:30px">'.nl2br($row['post_text']).'</td></tr>';		

 

with styles:

.tsubject{
text-decoration:underline;
border-left:thin #FFFFFF;
border-top:thin #FFFFFF;
}
.tposted{
border-top:thin #FFF;
border-left:thin #FFF;
border-bottom:thin #FFF;
}
.tdate{
border-top:thin #FFF;
border-right:thin #FFF;
border-bottom:thin #FFF;
}
.tinfo{
border-right:thin #FFFFFF;
border-left:thin #FFFFFF;
border-bottom:thin #FFFFFF;
}

 

tried your way also using same styles..:

  <tr>
    <td align="left" class="tsubject"><u><b><? echo $row['post_subject'] ?></b></u></td>
    <td align="right" class="tposted">Posted:</td>
    <td align="left" class="tdate"><i><? echo $date ?></i></td>
  </tr>
  <tr align="center">
    <td colspan="3" align="left" class="tinfo" style="padding-left:30px"><? echo nl2br($row['post_text']) ?></td>
  </tr><?

 

there is something im doing wrong, and i cant see it lol

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.