I want the bones of the table to be invisible, with the left edges of the text that's inside the first column cells lining up exactly with the text above and below the table. When I build the target PDF, the text inside the table has shifted a gnat's whisker to the right. I've attached a screenshot of the PDF, zoomed in, so you can see what I mean. I've copied the text "REVISED BY" from the bottom left cell and pasted it as a standalone paragraph below the table so that the unwanted offset is more obvious. As you can see, the upright of the R in the first "REVISED BY" - the one that's inside the table - is a smidgen further right than the second "REVISED BY" below it (the one that's not in the table).
I'm only just learning the table aspects of CSS, but I thought I had set every border, margin, padding, etc. to zero for the table. I must have missed something, but I can't see what.
The CSS in my stylesheet is:
Code: Select all
table {
border-collapse: collapse;
}
table, thead, tbody, tfoot, tr, th, td {
margin: 0;
padding: 0;
border: 0;
}p {
margin: 9pt 0 0 0.5cm;
padding: 0 0 0 0;
}
Which has the left margin reset to zero by the class:
p.infoBlockText {
font-size: 10pt;
font-weight: normal;
text-transform: uppercase;
color: var(Black);
margin-left: 0;
margin-top: 0;
}
The XML from the table part of the topic file is:
Code: Select all
<table>
<col style="width: 3cm;" />
<col />
<tbody>
<tr>
<td><p class="infoBlockText">Document type:</p></td>
<td><p class="infoBlockText">Product Note</p></td>
</tr>
<tr>
<td><p class="infoBlockText">Intended for:</p></td>
<td><p class="infoBlockText">SUPPORT ENGINEERS, CUSTOMER PLANT SUPERVISORS</p></td>
</tr>
<tr>
<td><p class="infoBlockText">Applicability:</p></td>
<td><p class="infoBlockText">Name of product(s)</p></td>
</tr>
<tr>
<td><p class="infoBlockText">Document ID:</p></td>
<td><p class="infoBlockText">12345, Revision 1</p></td>
</tr>
<tr>
<td><p class="infoBlockText">Original by:</p></td>
<td><p class="infoBlockText">Initials, 9 March 2022</p></td>
</tr>
<tr>
<td><p class="infoBlockText">Revised by:</p></td>
<td><p class="infoBlockText">Initials, 30 march 2022</p></td>
</tr>
</tbody>
</table>
<p class="infoBlockText">Revised by:</p>