WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Centre Align Text within Cells

[Resolved] Centre Align Text within Cells

  • 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/

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

    @tobiasbg

    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

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