• Resolved midnightroses

    (@midnightroses)


    Hi Tobias,
    I would like to align category column to the center. Certain table the category column would be either on column 3 , 4, 6. In this case i will not be able to use the “nth-child(x)” as mention the category column are different from one another.
    Is there a way to specifically targeted the whole column with a category header on different table?

    And also how can i target the last column to align to center?

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, I don’t know a way to target a named column directly, but only by their number.
    For the last column, this is a bit different, because CSS has the :last-child property. Therefore, some CSS like

    .tablepress-id-123 th:last-child,
    .tablepress-id-123 td:last-child {
      text-align: center;
    }

    should work.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Align target column’ is closed to new replies.