dbradbury Posted April 22, 2010 Share Posted April 22, 2010 i want to border a cell that i am echoing... do you understand that? lol Link to comment https://forums.phpfreaks.com/topic/199427-how-do-you-apply-cell-styling-during-echoing-php-code/ Share on other sites More sharing options...
litebearer Posted April 22, 2010 Share Posted April 22, 2010 some psuedo code... <? some php stuff ?> <td use css styling here><?PHP echo your content; ?></td> <?PHP more php stuff ?> Link to comment https://forums.phpfreaks.com/topic/199427-how-do-you-apply-cell-styling-during-echoing-php-code/#findComment-1046661 Share on other sites More sharing options...
dbradbury Posted April 22, 2010 Author Share Posted April 22, 2010 will that work in a while loop? Link to comment https://forums.phpfreaks.com/topic/199427-how-do-you-apply-cell-styling-during-echoing-php-code/#findComment-1046664 Share on other sites More sharing options...
litebearer Posted April 22, 2010 Share Posted April 22, 2010 yes Link to comment https://forums.phpfreaks.com/topic/199427-how-do-you-apply-cell-styling-during-echoing-php-code/#findComment-1046678 Share on other sites More sharing options...
dbradbury Posted April 22, 2010 Author Share Posted April 22, 2010 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 Link to comment https://forums.phpfreaks.com/topic/199427-how-do-you-apply-cell-styling-during-echoing-php-code/#findComment-1046690 Share on other sites More sharing options...
jcbones Posted April 22, 2010 Share Posted April 22, 2010 What color is your table/page background? Is the CSS style a linked file, or in the header? Link to comment https://forums.phpfreaks.com/topic/199427-how-do-you-apply-cell-styling-during-echoing-php-code/#findComment-1046697 Share on other sites More sharing options...
dbradbury Posted April 22, 2010 Author Share Posted April 22, 2010 its a blue colour Link to comment https://forums.phpfreaks.com/topic/199427-how-do-you-apply-cell-styling-during-echoing-php-code/#findComment-1046701 Share on other sites More sharing options...
dbradbury Posted April 22, 2010 Author Share Posted April 22, 2010 okay nothing will work, its either gotta be my style sheet or my template.. Link to comment https://forums.phpfreaks.com/topic/199427-how-do-you-apply-cell-styling-during-echoing-php-code/#findComment-1046734 Share on other sites More sharing options...
litebearer Posted April 22, 2010 Share Posted April 22, 2010 try this... <TABLE> <TR> <TD foo</TD> <TD>bar</TD> </TR> <TR> <TD>foo</TD> <TD style="border: 1px solid blue">bar</TD> </TR> </TABLE> Link to comment https://forums.phpfreaks.com/topic/199427-how-do-you-apply-cell-styling-during-echoing-php-code/#findComment-1046745 Share on other sites More sharing options...
dbradbury Posted April 22, 2010 Author Share Posted April 22, 2010 try this... <TABLE> <TR> <TD foo</TD> <TD>bar</TD> </TR> <TR> <TD>foo</TD> <TD style="border: 1px solid blue">bar</TD> </TR> </TABLE> okay that actually did something... Link to comment https://forums.phpfreaks.com/topic/199427-how-do-you-apply-cell-styling-during-echoing-php-code/#findComment-1046748 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.