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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    There’s no direct option for this with a checkbox, but you can achieve this with some easy “Custom CSS” (on the “Plugin Options” screen) of TablePress:

    .tablepress-id-123 tr:nth-child(3n+0) td {
      background-color: #ff0000;
    }
    .tablepress-id-123 tr:nth-child(3n+1) td {
      background-color: #00ff00;
    }

    The 3n+0 and 3n+1 are basic formulas that can be used to state which rows shall be colored, see https://www.w3schools.com/cssref/sel_nth-child.asp

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Every 3 4 line have background color’ is closed to new replies.