Page 1 of 1

CSS-based PDF: Table font size

Posted: Fri Aug 24, 2018 4:13 am
by mdslup
I have a CSS rule that I expect to control all text size in my PDF:

.body {
font-size: 13px;
}

However, the text size within a table seems to be *larger* in my merged HTML file, but *smaller* in my resulting PDF.

Is table text size controlled elsewhere?

Re: CSS-based PDF: Table font size

Posted: Fri Aug 24, 2018 9:04 am
by Dan
Hello,

This is caused by a compatibility mode that sets the HTML tables font size to "medium". In fact this should not apply, as the format is HTML 5. I will log a bug about this. Meantime, you should add also this selector:

Code: Select all


*[class ~= "topic/table"] {
font-size: 13px;
}
Many regards,
Dan

Re: CSS-based PDF: Table font size

Posted: Fri Aug 24, 2018 8:51 pm
by mdslup
Great, thanks.