amitdivya / dompdf

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

Cell spacing ignored #497

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I create a pdf that contains a table, with cell spacing set to 0, the pdf 
is still created with a small space between borders in the table instead of a 
solid border line.

Solid border expected when cell spacing is none.

Latest stable release 0.5.3

Original issue reported on code.google.com by m...@martinjgreen.me.uk on 6 Jun 2012 at 6:54

Attachments:

GoogleCodeExporter commented 9 years ago
0.5.3? Latest stable is, I believe, 0.5.2. At any rate, the issue has been 
addressed in the 0.6.0 code base. If you can upgrade, it's recommended. If not, 
try styling your table with `border-collapse: collapse;`.

If that doesn't work post a sample HTML document so we can do some rendering 
tests.

Original comment by eclecticgeek on 6 Jun 2012 at 8:02

GoogleCodeExporter commented 9 years ago
0.5.2 - my typo

0.6.x does indeed fix that and another issue, however this code:

        $output .= '<td valign="top"><div class="haq-result-bar haq-result-'.$level.'" style="width: '.$bar.'%;"></div>'. $userscore.'</td>';
        $output .= '</tr>';

with 0.5.2 was rendered with the number on the end of, and on the same line as, 
the div, 0.6.x renders them on a new line. Using float as an alternative 
produces similar results.

Original comment by m...@martinjgreen.me.uk on 6 Jun 2012 at 11:06

GoogleCodeExporter commented 9 years ago
What styles are applied to the div? I don't see anything there that should be 
problematic.

You could try styling the div with `display: inline-block;` ... but float 
should also work.

Post a sample HTML document and we can dig into it a bit more.

Original comment by eclecticgeek on 7 Jun 2012 at 1:30

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 30 May 2013 at 5:16