Support » Plugin: TablePress » Centre Align Text within Cells

  • Resolved EdenCG


    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?

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg



    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.


Viewing 1 replies (of 1 total)
  • The topic ‘Centre Align Text within Cells’ is closed to new replies.