Title: Quantity field centered
Last modified: February 18, 2019

---

# Quantity field centered

 *  [Shop-tester](https://wordpress.org/support/users/evolinestore/)
 * (@evolinestore)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/quantity-field-centered/)
 * Hello,
 * First of all, thanks for a very good and useful plugin.
 * For us all works fine except for a very small detail, the quantity field being
   to close to the product description. Most of our custom/special products use 
   2-3 lines as product description.
 * Several times there are all kind of numbers in the description thus visually 
   somewhat confusing with the quantity field close and left-justified from the 
   description.
 * I have tried with the css to center the quantity field. This does work, but also
   for other fields like price, subtotal, shipping and total. The final result looks
   a bit silly and not what was intended.
 * I thought about the pro-version, but since this is the only aspect what we need,
   it seems a bit overkill. Also, I’m not sure if the pro-version could do this..?
 * Any suggestions as how to fix this?
    -  This topic was modified 7 years, 3 months ago by [Shop-tester](https://wordpress.org/support/users/evolinestore/).
    -  This topic was modified 7 years, 3 months ago by [Shop-tester](https://wordpress.org/support/users/evolinestore/).
    -  This topic was modified 7 years, 3 months ago by [Shop-tester](https://wordpress.org/support/users/evolinestore/).

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

 *  Plugin Contributor [kluver](https://wordpress.org/support/users/kluver/)
 * (@kluver)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/quantity-field-centered/#post-11219878)
 * Hi [@evolinestore](https://wordpress.org/support/users/evolinestore/),
 * The easiest way to add custom CSS is with our [Premium Templates extension](https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-premium-templates/).
   You can add it right in the plugin settings via the customizer’s custom styles
   section.
 * With the free version you can add a small code snippet that adds some padding
   to the product table cells:
 *     ```
       add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles' );
       function wpo_wcpdf_custom_styles () {
       	?>
       	th.product, td.product {
       		padding-right:5mm;
       	}
       	<?php
       }
       ```
   
 * This snippet should be placed in the functions.php of your child theme. If you
   never worked with code snippets or functions.php before please read this: [How to use filters ](https://docs.wpovernight.com/general/how-to-use-filters/)
 *  Thread Starter [Shop-tester](https://wordpress.org/support/users/evolinestore/)
 * (@evolinestore)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/quantity-field-centered/#post-11221734)
 * Hello [@kluver](https://wordpress.org/support/users/kluver/),
 * Works like a charm! Thanks a lot.

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

The topic ‘Quantity field centered’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Shop-tester](https://wordpress.org/support/users/evolinestore/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/quantity-field-centered/#post-11221734)
 * Status: not resolved