Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The reason for this is that the .column-1 CSS class is a class on the th element. Thus, you’d have to use

    .tablepress-id-3 .row-1 th.column-1 {
      text-align: center !important;
    }

    You can probably even leave out the th and the !important, so that

    .tablepress-id-3 .row-1 .column-1 {
      text-align: center;
    }

    probably works already.

    Regards,
    Tobias

    Thread Starter Fergumungus

    (@fergumungus)

    Thank you! yes, your 2nd option (without !important) worked perfectly.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Centering text in a single cell’ is closed to new replies.