rvpatel / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

HTML table border style is not working #568

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Dom Version : version 0.5.1
PHP Version : 5.4.3  

Below is my code

<style>
.FBrightborder{
   font-family: Arial;
   font-size: 13px;
   color: #333333;
   font-weight: bold;   
   border-right:#999999 solid 1px;
}
.FBFormLabel {
    font-family: Arial;
    font-size: 13px;
    color: #333333;
}
</style>
</style>

<table width="100%" cellspacing="0" cellpadding="0" align="center" 
style="margin:15PX 0 0 0" >
<tr><td>&nbsp;</td></tr>
<tr valign="top">
<td >
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td width="50%" colspan="2" align="center" >Payments </td>
<td width="50%" colspan="2" align="center" >Deductions </td>
</tr>
<tr>
<td colspan="2" valign="top"  style="border-right:#999999 1px solid 
;border-bottom:#999999 1px solid">
<table width="100%"  style="border-bottom:#999999 1px solid" cellpadding="0" 
cellspacing="0">                    
<tr>
<td width="66%" height="19" class="FBrightborder">Garment </td>
<td class="FBFormLabelBold" width="34%">4000</td>
</tr>
<tr>
<td height="19" class="FBrightborder">Food</td>
<td class="FBFormLabelBold">1000</td>
</tr>
</table>
</td>
<td colspan="2" valign="top" style="border-bottom:#999999 1px solid">
<table width="100%"  border="0" cellpadding="0" cellspacing="0">                        
<tr>
<td width="65%" height="19" class="FBrightborder">Car</td>
<td width="35%" class="FBFormLabelBold">100</td>
</tr>
</table>                  
</td>
</tr>               
</table></td>
</tr>
</table>

Issue is that,the table inside td is without border and 2 colulmns, and I need 
to have right border for the first column. For that I had used the style 
FBrightborder, but the right borders are not coming in PDF.

Please provide me assistance to rectify this.

Thanks
Mary

Original issue reported on code.google.com by rinnuaj...@gmail.com on 16 Jun 2013 at 8:42

GoogleCodeExporter commented 9 years ago
You should try v0.6.0 (currently in beta, but a recommended update).

Also, please note that issue tracking has moved to github:
https://github.com/dompdf/dompdf/issues

You can also post questions to the support forum or StackOverflow:
http://groups.google.com/group/dompdf
http://stackoverflow.com/questions/tagged/dompdf

Original comment by eclecticgeek on 17 Jun 2013 at 3:48