table CSS formatting from plugin not applied
-
Hi Lewis
I was typing up this post but found a workaround mid way through. It’s prety niche so it probably won’t affect anyone. I’ll leave this up just in case. Please feel free to mark as resolved.
Workaround:
Settings > Easy Table > Use TH for the first row? (unticked)
save settings
Testing out a popular plugin called easy table, which makes tables from comma seperated text within a [table] shortcode (example).
you can specify the width of columns:
[table] Col 1[attr width="10%"],Col 2[attr width="10%"],Col 3[attr width="25%"],Col 4[attr width="50%"] ... [/table]
which outputs in the page html as
<tr><th width="10%">Col 1</th> <th width="10%">Col 2</th> <th width="25%">Col 3</th> <th width="50%">Col 4</th> </tr>
however the generated pdf doesn’t respect these styles (link)
On the other hand, the pdf can render the column width correctly if I copy in the table directly as html. In this case I specify the styles as in-line CSS via the text editor.
https://www.ads-software.com/plugins/wp-post-to-pdf-enhanced/
- The topic ‘table CSS formatting from plugin not applied’ is closed to new replies.