html - Inline css is not working in my pdf -
i have used tcpdf in codeignter.i want give inline css td.
mycode is:
<table style="float:left;width:100%; border:1px solid #c2c2c2; margin-top:10px;"> <tr style="float:left;width:100%;"> <td style="float:left;width:50%;"> <tr style="float:left;width:260px;"> <th style="float:left;width:20px;color:#2f70a8;"><span style="border-right:1px solid #c2c2c2;">sr no</span></th> <thstyle="float:left;width:80px;color:#2f70a8;"><span style="border-right:1px solid #c2c2c2;">date</span></th> <th style="float:left;width:80px;color:#2f70a8;"><span style="border-right:1px solid #c2c2c2;">credit amount</span></th> <th style="float:left;width:80px;color:#2f70a8;"><span style="border-right:1px solid #c2c2c2;">description</span></th> </tr> <?php $i = 1; foreach($br_result $branch) { ?> <tr style="float:left;"> <td style="float:left;width:20px;"><span style="float:left;border-right:1px solid #c2c2c2;"><?php echo $i; ?></span></td> <td style="float:left;width:80px;"><span style="float:left;border:1px solid #c2c2c2;"><?php echo $branch->date; ?></span></td> <td style="float:left;width:80px;"><span style="float:left;border:1px solid #c2c2c2;"><?php echo $branch->payment; ?></span></td> <td style="float:left;width:80px;"><span style="float:left;border:1px solid #c2c2c2;"><?php echo $branch->remark; ?></span></td> </tr> <?php $i++; } ?> </td> <td> </td> </tr> </table>
here span css border-right , border not working. have try other method give class span , created , apply css not working. should have try solved issue?
tcpdf doesnot support css properties, can use css basic formatting. dont think tcpdf supports border css properties.
alternatives
Comments
Post a Comment