Forum How do I...?

Table cell spacing and padding

mickyjtwin
Is table cell spacing and cell padding supported? Having padding and spacing defined in html does not seem to transfer to PDF.
mikeday
The padding property applies to table cells and the border-spacing property applies to tables; we also try to support the cellspacing and cellpadding table attributes, although these are slightly incompatible with CSS properties. Try this example:
<table border="1" cellspacing="10" cellpadding="20">
<tr><td>ABC</td><td>DEF</td></tr>
<tr><td>ABC</td><td>DEF</td></tr>
</table>

or use these equivalent CSS rules:
table { border-spacing: 10px }
td { padding: 20px }