• Resolved davidblyth

    (@davidblyth)


    I am using the following CSS:

    .tablepress-id-4007 .column-3,
    .tablepress-id-4007 .column-4,
    .tablepress-id-4007 .column-5,
    .tablepress-id-4007 .column-6,
    .tablepress-id-4007 .column-7,
    .tablepress-id-4007 .column-8 {
    width: 150px;
    vertical-align: middle;
    text-align: center;
    }

    To try center the text in these columns, but it having no effect.

    Also if I upgrade to the Pro Table Press would I be able to change the background color of a cell, you will see on this page the lowest time per row is highlighted in purple, but I have done this manually in the CSS Options, could it be done in the Pro version just based on the data in the table.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The reason for this is that there is other CSS code with a higher priority overriding your desired changes. Fortunately, you can adjust this, by instead trying this CSS code:

    .tablepress-id-4007 .column-3,
    .tablepress-id-4007 .column-4,
    .tablepress-id-4007 .column-5,
    .tablepress-id-4007 .column-6,
    .tablepress-id-4007 .column-7,
    .tablepress-id-4007 .column-8 {
      width: 150px;
      vertical-align: middle !important;
      text-align: center !important;
    }

    The !important flag will give your CSS the higher priority then.

    As for changing those cell background colors: The TablePress Pro version does have cell and row highlighting features, but these can not find the lowest value in a row automatically, so that they will not be helpful for this. Right now, I can also only think of doing this manually. Sorry for not having better news here.

    Regards,
    Tobias

    Thread Starter davidblyth

    (@davidblyth)

    Thank you so much as always

    Plugin Author Tobias Bäthge

    (@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 ‘Cell Text Alignment’ is closed to new replies.