This is an archived forum post. The information may be outdated. Contact us if you have any questions.

colspan width in table

Bumjoo Hwang wrote on 2015-11-21:
Hi
When I converted HTML to PDF I had a problem in table design.

example:

<table>
<colgroup>
<col width="50px">
<col width="200px">
<col width="100px">
</colgroup>
<thead>
<tr>
<th rowspan="2">A</th>
<th colspan="2">B</th></tr>
<tr>
<th>B-1</th>
<th>B-2</th></tr>
</thead>
<tbody>
<tr>
<td>a</td>
<td>b-1</td>
<td>b-2</td></tr>
</tbody>
</table>

Column A is viewed correctly but..
Column 'B-1' and 'B-2' have a same width - 150px - in PDF files....

I used code <th width=200> or <td width=200> instead of <col width=200px> but no change..T.T
please help me..

Regards,
support wrote on 2015-11-24:
Hello,

I tested your code and the column widths in the generated PDF are correct. See the attached file. I just added the following for better visualization:
<style>
  td, th {border:1px solid gray}
</style>


Could you please double check on your end?
Bumjoo Hwang wrote on 2015-11-24:
I got it...

"table-layout:fixed" - this make a problem....

thank you.