Table header overlapping

643 views
Skip to first unread message

gilles...@gmail.com

unread,
Feb 26, 2016, 4:12:11 AM2/26/16
to jsreport
Hello,

I am designing a report with jsrender and phantompdf. I have a table with dynamic columns (with loop for) and the tbody of the table overlap the thead of the table.

Here is an example :


I tried to fix it by :

   thead {display: table-header-group;}
   tfoot {display: table-row-group;}
   tr {page-break-inside: avoid;}

but it doesn't do the job. Do you have any idea to solve the problem ?

Thanks for your help.

Gilles

Jan Blaha

unread,
Feb 27, 2016, 5:10:44 AM2/27/16
to jsreport

The problem seems to be the padding in the .col-titre

.col-titre {
    background
: #005498;
    font
-family: Arial;
   
/*padding: 10px;*/
    text
-align: center;
}

The header is not overlapping without it. This is probably not the solution, but at least a hint.


Reply all
Reply to author
Forward
0 new messages