Title: table CSS formatting from plugin not applied
Last modified: August 21, 2016

---

# table CSS formatting from plugin not applied

 *  [ajg-cal](https://wordpress.org/support/users/ajg-cal/)
 * (@ajg-cal)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/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](http://wordpress.org/plugins/easy-table/),
   which makes tables from comma seperated text within a [table] shortcode ([example](http://takien.com/blog/2012/05/21/easy-table-is-the-easiest-way-to-create-table-in-wordpress/)).
 * 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](http://vps01.gunyon.co.uk/tables-01/))
 * 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://wordpress.org/plugins/wp-post-to-pdf-enhanced/](https://wordpress.org/plugins/wp-post-to-pdf-enhanced/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Lewis Rosenthal](https://wordpress.org/support/users/lewisr/)
 * (@lewisr)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/table-css-formatting-from-plugin-not-applied/#post-4609157)
 * Hi, Alex…
 * (Responding in order.)
 * Indeed, columns and snaking text seem to be almost as troublesome for handing
   to TCPDF as images in the header (a quick web search will confirm the number 
   of questions regarding these three issues).
 * I’ll add this to the list, though, and see if we might do a better job of handling
   the output from that plugin, which after all, should just be HTML. There must
   be some additional tag(s) which are breaking the raw HTML we feed to TCPDF.
 * Thanks for letting me know, and for posting your workaround!
 * Cheers
 * Lewis
 *  Plugin Author [Lewis Rosenthal](https://wordpress.org/support/users/lewisr/)
 * (@lewisr)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/table-css-formatting-from-plugin-not-applied/#post-4609327)
 * Instead of marking this as resolved, Alex, I’m going to mark it as “not a support
   question.” It’s a good how-to, though, and thanks again for sharing it.
 * Cheers
 *  [elarson](https://wordpress.org/support/users/elarson/)
 * (@elarson)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/table-css-formatting-from-plugin-not-applied/#post-4609332)
 * I also did some testing with trying to get some Twitter Bootstrap shortcodes 
   and plugins to work, also with no luck. The ones I tried were: WordPress Twitter
   Bootstrap CSS, Bootstrap Shortcodes for WordPress, Easy Bootstrap Shortcode and
   Bootstrap Glyphicons in Visual Editor.
 *  [elarson](https://wordpress.org/support/users/elarson/)
 * (@elarson)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/table-css-formatting-from-plugin-not-applied/#post-4609333)
 * Oops, I accidently posted the last post in the wrong thread. Going to re-post
   it in [http://wordpress.org/support/topic/include-a-print-css-file](http://wordpress.org/support/topic/include-a-print-css-file)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘table CSS formatting from plugin not applied’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-post-to-pdf-enhanced_d24b30.svg)
 * [WP Post to PDF Enhanced](https://wordpress.org/plugins/wp-post-to-pdf-enhanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-post-to-pdf-enhanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-post-to-pdf-enhanced/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-post-to-pdf-enhanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-post-to-pdf-enhanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-post-to-pdf-enhanced/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [table](https://wordpress.org/support/topic-tag/table/)
 * [`in-line](https://wordpress.org/support/topic-tag/in-line/)

 * 4 replies
 * 3 participants
 * Last reply from: [elarson](https://wordpress.org/support/users/elarson/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/table-css-formatting-from-plugin-not-applied/#post-4609333)
 * Status: not a support question