Title: row background
Last modified: August 21, 2016

---

# row background

 *  Resolved [jbcuisinier](https://wordpress.org/support/users/jbcuisinier/)
 * (@jbcuisinier)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/row-background/)
 * Hi
 * I know to apply in options a background color on a defined row (N° x)
 * But I want now apply this background color on another random row (maybe #5 or#
   6),
 * Many thanks for your response
 * [http://wordpress.org/plugins/tablepress/](http://wordpress.org/plugins/tablepress/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/row-background/#post-4450627)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * I’m not really sure what you mean. You want to change the background color of
   a random row, so that whenever the page is reloaded, a different row has a changed
   background color?
    Unfortunately, that is not possible with CSS 🙁 As a workaround,
   you could choose a random row with some custom JavaScript code maybe, that adds
   a CSS class to a random row, and then use that class in the CSS code.
 * Regards,
    Tobias
 *  Thread Starter [jbcuisinier](https://wordpress.org/support/users/jbcuisinier/)
 * (@jbcuisinier)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/row-background/#post-4450660)
 * Excuse my bad explanation. I would like just to apply a background color in one
   row in a table, but not in every row of same place in any table.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/row-background/#post-4450667)
 * Hi,
 * ok, then the code from the question “How can I change the background color of
   a single row?” in the TablePress FAQ at [http://tablepress.org/faq/](http://tablepress.org/faq/)
   should be what you need:
    With
 *     ```
       .tablepress-id-4 .row-5 td {
       	background-color: #ff0000;
       }
       ```
   
 * you would change the background color of the sixth row of table 4 only.
 * Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘row background’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/row-background/#post-4450667)
 * Status: resolved