• Resolved eisakov1

    (@eisakov1)


    Hello again,

    I’d like to change the colors of all the content rows of a table, so that the header stays uniquely colored and the search/paginate functions remain transparent. I tried enabling alternating row highlights and setting both odd and even to white. That technically worked but I feel like it robs that functionality from other tables in the future.

    I found this guide on the FAQ’s but I’m unsure of how to apply this to all rows or even a custom selection (like rows 2-11, for example).

    I’m still learning CSS so apologies if this another braindead question.

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.

    Normally, something like

    .tablepress tbody td {
      background-color: #ffffff;
    }

    (with “Alternating Row Colors” turned off) should turn all rows white, except for the header row.

    If that does not work, can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter eisakov1

    (@eisakov1)

    Indeed this worked. It did exactly what I was hoping for.
    Thank you so much once again!

    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 ‘Change Background color of all rows’ is closed to new replies.