1. Home
  2. Knowledge Base
  3. Posts Table Pro
  4. Advanced Usage
  5. How can I the alignment of my post table’s contents

How can I the alignment of my post table’s contents

Posts Table Pro aligns all content to the left, which works fine for most tables.

There’s currently no built-in option to change the alignment, but you can achieve this using simple CSS. You can add the following to your theme’s stylesheet or in the Customizer (see Appearance -> Customize -> Custom CSS):

Center Alignment:

.posts-data-table th, .posts-data-table td {
    text-align: center;
}

Right Alignment:

.posts-data-table th, .posts-data-table td {
    text-align: right;
}

If you need any help with this, you can use our customisation service – please contact us for a quote.

Was this article helpful?

Related Articles