I have been using Prince for the last few months to take documentation out of MS Word and into a format that allows CSS to take care of the formatting.
I have been having some problems with tables, specifically tables spanning multiple rows, columns, etc.
here is some sample code: (keep in mind my source is XML NOT html. i am merely using the same names as html to follow the prince documentation easier.
and my stylesheet.
Y should span accross the margin of both B and C but sadly. stays with B and there is a blank space underneath C. essentially what I am trying to represent is that Y applies to both B and C.
Any help would be appreciated.
I have been having some problems with tables, specifically tables spanning multiple rows, columns, etc.
here is some sample code: (keep in mind my source is XML NOT html. i am merely using the same names as html to follow the prince documentation easier.
<table>
<th>Test Table</th>
<tr>
<td>A</td><td>B</td><td>C</td>
</tr>
<tr>
<td>X</td><td>Y</td>
</tr>
</table>
and my stylesheet.
table {display: table; table-layout: fixed; width: 50%}
thead {display: table-header-group}
tr {display: table-row}
td {display: table-cell; border: solid 1px black}
td.colspan2 {column-span: 2 }
Y should span accross the margin of both B and C but sadly. stays with B and there is a blank space underneath C. essentially what I am trying to represent is that Y applies to both B and C.
Any help would be appreciated.