Title: CSS for multiple rows
Last modified: March 18, 2018

---

# CSS for multiple rows

 *  Resolved [pimsonite](https://wordpress.org/support/users/pimsonite/)
 * (@pimsonite)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/css-for-multiple-rows/)
 * 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 [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/css-for-multiple-rows/#post-10086974)
 * 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.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [multiple](https://wordpress.org/support/topic-tag/multiple/)
 * [rows](https://wordpress.org/support/topic-tag/rows/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/css-for-multiple-rows/#post-10086974)
 * Status: resolved