{"id":8853816,"date":"2017-02-27T18:04:25","date_gmt":"2017-02-27T18:04:25","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/css-not-displaying-in-pdf\/"},"modified":"2017-02-27T18:04:25","modified_gmt":"2017-02-27T18:04:25","slug":"css-not-displaying-in-pdf","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/css-not-displaying-in-pdf\/","title":{"rendered":"CSS Not Displaying in PDF"},"content":{"rendered":"<p>Hi there &#8211;<br \/>\nPrior to the last update, the plug-in was working like a charm.  However, after the last update, when the PDF is emailed, none of the CSS formatting is carrying over.  <\/p>\n<p>This is the CSS I currently have at the top of the PDF code: <\/p>\n<pre><code>&lt;style type=&quot;text\/css&quot;&gt;\n.app_label {\ntext-align: center; \nvertical-align: top; \nfont-size: 6px; \nfont-style: italic;\nwhite-space:nowrap;\n} &lt;\/style&gt;\n\n&lt;style type=&quot;text\/css&quot;&gt;\n.app_input {\ntext-align: left;  \nfont-size: 12px; \nfont-weight: bold;\nborder-bottom: .5px solid black;\npadding: 0px 10px;\nwhite-space:nowrap;\n\n} &lt;\/style&gt;\n\n&lt;style type=&quot;text\/css&quot;&gt;\n.app_input_c {\ntext-align: center;  \nfont-size: 12px; \nfont-weight: bold;\nborder-bottom: .5px solid black;\npadding: 0px 10px;\nwhite-space:nowrap;\n\n} &lt;\/style&gt;\n\n&lt;style type=&quot;text\/css&quot;&gt;\n.field_label { \nfont-size: 12px; \nwhite-space:nowrap;\nwidth:25px;\n} &lt;\/style&gt;\n\n&lt;style type=&quot;text\/css&quot;&gt;\n.field_label_r {\ntext-align: right;  \nfont-size: 12px; \npadding-left:5px;\nwhite-space:nowrap;\nwidth:25px;\n} &lt;\/style&gt;\n\n&lt;style type=&quot;text\/css&quot;&gt;\n.shs_app {\ntable-layout: fixed;\nborder:1px solid black;\npadding:10px; \nwhite-space: nowrap;\nwidth:100%;\n\n} &lt;\/style&gt;\n\n&lt;style type=&quot;text\/css&quot;&gt;\n.spacer {\npadding:3px; \n\n} &lt;\/style&gt;<\/code><\/pre>\n<p>Again, this was working perfectly before and, when I click &#8220;Preview PDF,&#8221; it displays properly.  It&#8217;s just the actual PDF document that is no longer being formatted correctly. <\/p>\n","protected":false},"template":"","class_list":["post-8853816","topic","type-topic","status-publish","hentry","topic-tag-pdf"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8853816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8853816\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8853816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}