DinkToPdf
DinkToPdf copied to clipboard
padding is not applied when it comes from CSS
I have this CSS class loaded from an external stylesheet
td {
vertical-align: top;
color:red;
padding: 50px;
}
table cells are red, so I know the CSS is applied. vertical-align
and color
are properly set. padding
is ignored.
However, if I add the padding directly on the td element like this
<td style="padding: 50px">
foo bar
</td>
it works.
I do not want to style each and every td element in the PDF. I want to define it in the css
Having the same issue with both padding
and margin
when UserStyleSheet
is set to my local css file.