Page 1 of 1

Table fonts.

Posted: Thu Jan 10, 2019 4:00 am
by bloodnok
My default fonts are 12pt. When I build the PDF, the output fonts in the table are about half the size.

I tried the following in my CSS:

Code: Select all

table tbody tr td p{
font-size: 12pt !important;
}
It didn't work. The fonts are still about half size.

How do I get tables to use the same font size as the rest of the doc?

Re: Table fonts.

Posted: Fri Jan 11, 2019 11:53 am
by Costin
Hello,

You should double check that there really are any paragraph elements inside the table cells.
One thing you could try would be to match even the cell, by modifying the selector, like:

Code: Select all

table tbody tr td p{
font-size: 12pt !important;
}
If this does not solve the issue, as we can not tell what is wrong without knowing the structure that your source DITA file have, you should send us a minimal sample for which the issue is reproducible (on support@oxygenxml.com).

Regards,
Costin

Re: Table fonts.

Posted: Thu Feb 14, 2019 8:14 pm
by bloodnok
In case anyone else runs into this, Costin provided a solution that eliminated the problem for me. Added the following to my CSS:

Code: Select all

colspec, col, spanspec{
font-size:1em;
}