1. Home
  2. Knowledge Base
  3. WooCommerce Product Table
  4. Advanced Usage - Styling

How do I change the alignment of the product table's contents?

WooCommerce Product Table aligns all content to the left, which works fine for most tables.

There’s currently no built-in option to change the alignment, for example to center the text in the table. You can center column text using simple CSS. You can add the following to your theme’s stylesheet or in the Customizer (see Appearance → Customize → Custom CSS):

Center Alignment:

.wc-product-table th, .wc-product-table td {
    text-align: center;
}

Right Alignment:

.wc-product-table th, .wc-product-table td {
    text-align: right;
}

If you need any help with this then you can use our plugin customization service.

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.