Title: justified text
Last modified: August 31, 2016

---

# justified text

 *  [andrianiannalisa](https://wordpress.org/support/users/andrianiannalisayahooit/)
 * (@andrianiannalisayahooit)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/justified-text-2/)
 * Hi there,
    is it possible generate a pdf with justified text? How can I do?
 * I have another question?
    On the smartphone, I don’t see the button to download
   the pdf How can I solve this? Best regards
 * [https://wordpress.org/plugins/dk-pdf/](https://wordpress.org/plugins/dk-pdf/)

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

 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/justified-text-2/#post-7039913)
 * Hi andrianiannalisa,
 * add this CSS to DK PDF Settings / PDF CSS and click Save Settings:
 *     ```
       body {text-align: justify;}
       p {text-align: justify;}
       ```
   
 * about smartphone, can you post here an URL where I can see the problem? thanks.
 * Best.
 *  Thread Starter [andrianiannalisa](https://wordpress.org/support/users/andrianiannalisayahooit/)
 * (@andrianiannalisayahooit)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/justified-text-2/#post-7039915)
 * This is the link
 * [http://www.maggialetti.it/viaggi-di-gruppo-in-bus/prodotto/ville-venete-vicenza-e-modena-2/](http://www.maggialetti.it/viaggi-di-gruppo-in-bus/prodotto/ville-venete-vicenza-e-modena-2/)
 * PS i have addes this custom css in PDF CSS but it doesn’t work
 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/justified-text-2/#post-7039916)
 * Hi andrianiannalisa,
 * You need to know which container classes names your theme (and plugins like visual
   composer) uses, the above code is only for basic containers like <p>. Also as
   I can see css inline is added to each paragraph: <p style=”text-align: left;”
   >… maybe you can try adding !important at the end, but I’m not sure if this will
   work:
    p {text-align: justify !important;}
 * for button being showed in smartphone, add this css to your theme css:
    .dkpdf-
   button-container {float: none;}
 * Best.
 *  Thread Starter [andrianiannalisa](https://wordpress.org/support/users/andrianiannalisayahooit/)
 * (@andrianiannalisayahooit)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/justified-text-2/#post-7039922)
 * Hi there,
    I made the justified text, and I solved it 🙂
 * For the button…I added that code (with ! Important ) and now works fine! Thank
   you very much!!
 * Another question…
    if I insert a table with no border, in pdf , I can’t see the
   table and there are no margin between columns. How can I do? I have to set border“
   1” necessarily??
 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/justified-text-2/#post-7040078)
 * Hi andrianiannalisa, sorry for the delay,
 * by default DK PDF gets some of your theme CSS, as you can see in this example:
   
   [http://wp.dinamiko.com/demos/dkpdf/page-markup-and-formatting/?pdf=1134](http://wp.dinamiko.com/demos/dkpdf/page-markup-and-formatting/?pdf=1134)
   in this case, table CSS styles are from the theme Make I’m using in the demo.
   First see if your theme has CSS styles for tables, if not, add the CSS for tables
   manually using Settings CSS tab.
 * Best.

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

The topic ‘justified text’ is closed to new replies.

 * ![](https://ps.w.org/dk-pdf/assets/icon-256x256.png?rev=3396282)
 * [DK PDF - WordPress PDF Generator](https://wordpress.org/plugins/dk-pdf/)
 * [Support Threads](https://wordpress.org/support/plugin/dk-pdf/)
 * [Active Topics](https://wordpress.org/support/plugin/dk-pdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dk-pdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dk-pdf/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/justified-text-2/#post-7040078)
 * Status: not resolved