Title: text alignment doesn&#8217;t work
Last modified: April 13, 2022

---

# text alignment doesn’t work

 *  Resolved [philsrgtz](https://wordpress.org/support/users/philsrgtz/)
 * (@philsrgtz)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/text-alignment-doesnt-work/)
 * Hi everybody,
 * I need help with the text alignment in my customer-order-completed mail. I put
   the attached css in the custom css section and the preview looks good, but when
   the customer makes an order they will receive and email without all the changes.
   So it seems that it is completely ignored in the final email and does not work.
 * Have anybody any ideas or a solution? Thank you!
 * th.td {
    text-align: left !important; padding-left: 0px !important; padding-right:
   25px !important; padding-top: 15px !important; padding-bottom: 15px !important;}
 * td.td{
    text-align: left !important; padding-left: 0px !important; padding-right:
   25px !important; padding-top: 15px !important; padding-bottom: 15px !important;}

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

 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/text-alignment-doesnt-work/#post-15559059)
 * Hey,
    Thanks for reaching out! Have you cleared your cache after adding this 
   css?
 * Kindly,
    Hannah
 *  Thread Starter [philsrgtz](https://wordpress.org/support/users/philsrgtz/)
 * (@philsrgtz)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/text-alignment-doesnt-work/#post-15561435)
 * Hi Hannah,
    thanks for your answer. I have cleared the cache and also used another
   browser. But as I said it looks all right in the preview but not in the testmail
   or in the mail the customer gets.
 * Kind regards,
    Philipp
 *  [hannah](https://wordpress.org/support/users/hannahritner/)
 * (@hannahritner)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/text-alignment-doesnt-work/#post-15580002)
 * Hi,
    I’ll check with the dev team and see if they have any insight. Thanks for
   your patience!
 * Kindly,
    Hannah
 *  Thread Starter [philsrgtz](https://wordpress.org/support/users/philsrgtz/)
 * (@philsrgtz)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/text-alignment-doesnt-work/#post-15583991)
 * Thanks a lot!
 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/text-alignment-doesnt-work/#post-15590198)
 * Hi,
    If you are going to use custom CSS you need to make sure the selector is
   extremely specific because all CSS runs through a function that places it all
   inline in HTML and in that case !important is meaningless. CSS is added inline
   instead of in a stylesheet for best compatibility with email clients. This is
   all done by Woocommerce core and not something we add.
 * Can you send me a screen shot of what you are hoping to achieve? Without knowing
   what settings you are using I can’t see what you are going for just by the css.
   then perhaps I can offer a suggestion.
 * Ben
 *  Thread Starter [philsrgtz](https://wordpress.org/support/users/philsrgtz/)
 * (@philsrgtz)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/text-alignment-doesnt-work/#post-15591951)
 * Hi Ben,
    thank you for your answer. I want to align the text in the table head
   and body on the left.
 * Preview
    [Preview-Upper Table](https://ibb.co/WDjnCbB) [Preview-Lower Table](https://ibb.co/TwBXY7L)
 * Final-Mail
    [Final-Mail Upper Table](https://ibb.co/PZt6TZr) [Final-Mail Lower Table](https://ibb.co/v1kWrj8)
 * Kindly,
    Philipp
 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/text-alignment-doesnt-work/#post-15597853)
 * So here is css you can use:
 *     ```
       #template_container #body_content_inner table.td th.td, #template_container #body_content_inner table.td td.td {
         text-align: left !important;
       }
       ```
   
 * Ben
 *  Thread Starter [philsrgtz](https://wordpress.org/support/users/philsrgtz/)
 * (@philsrgtz)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/text-alignment-doesnt-work/#post-15598414)
 * Thanks a lot! It works perfectly 🙂

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

The topic ‘text alignment doesn’t work’ is closed to new replies.

 * ![](https://ps.w.org/kadence-woocommerce-email-designer/assets/icon-256x256.png?
   rev=3115863)
 * [Kadence WooCommerce Email Designer](https://wordpress.org/plugins/kadence-woocommerce-email-designer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kadence-woocommerce-email-designer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/)
 * [Active Topics](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/reviews/)

## Tags

 * [alignment](https://wordpress.org/support/topic-tag/alignment/)
 * [text-align](https://wordpress.org/support/topic-tag/text-align/)

 * 8 replies
 * 3 participants
 * Last reply from: [philsrgtz](https://wordpress.org/support/users/philsrgtz/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/text-alignment-doesnt-work/#post-15598414)
 * Status: resolved