• Resolved pimsonite

    (@pimsonite)


    Hi Tobias,

    Sorry I need to reach out.
    Any chance I can assign the background color of multiple rows in a table:

    .tablepress-id-N .row-X td {
    background-color: #ff0000;
    }

    so no need to copy the code every time for a row, though adding several row numbers on <X>

    Thanks in advance for your answer.

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Here, you can write the CSS code like this:

    .tablepress-id-123 .row-3 td,
    .tablepress-id-123 .row-7 td,
    .tablepress-id-123 .row-8 td {
      background-color: #ff0000;
    }

    i.e. write the selector part of the CSS code as a comma-separated list.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘CSS for multiple rows’ is closed to new replies.