WordPress.org

Forums

TablePress
[resolved] Centre Align Text within Cells (2 posts)

  1. EdenCG
    Member
    Posted 1 year ago #

    I've been trying to centre content within tables but I've had no luck.

    The custom css I'm using:

    .tablepress-id-3 .row-1 .column-3,
    .tablepress-id-3 .row-1 .column-4,
    .tablepress-id-3 .row-2 .column-3,
    .tablepress-id-3 .row-2 .column-4,
    .tablepress-id-3 .row-3 .column-3,
    .tablepress-id-3 .row-3 .column-4,
    .tablepress-id-3 .row-4 .column-3,
    .tablepress-id-3 .row-4 .column-4,
    .tablepress-id-3 .row-5 .column-3,
    .tablepress-id-3 .row-5 .column-4,
    {
    text-align: center;
    }

    Can you please advise?

    https://wordpress.org/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your post, and sorry for the trouble.

    The reason for this is the comma after the last selector (right before the {). That has to be removed.
    Then, you could actually simplify the code as well:

    .tablepress-id-3 .column-3,
    .tablepress-id-3 .column-4 {
      text-align: center;
    }

    should be enough.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TablePress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic