DinkToPdf icon indicating copy to clipboard operation
DinkToPdf copied to clipboard

padding is not applied when it comes from CSS

Open oskaremil opened this issue 5 years ago • 1 comments

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-alignand 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

oskaremil avatar Mar 12 '19 13:03 oskaremil

Having the same issue with both padding and margin when UserStyleSheet is set to my local css file.

Onotolo avatar Apr 16 '19 11:04 Onotolo