Title: Table color error?
Last modified: August 20, 2016

---

# Table color error?

 *  Resolved [PaulFreeWebs](https://wordpress.org/support/users/paulfreewebs/)
 * (@paulfreewebs)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/table-color-error/)
 *     ```
       .tablepress-id-3 .column-1 {
       	width: 70px !important;
       }
   
       .tablepress-id-3 .column-2 {
       	width: 100px !important;
       }
   
       .tablepress-id-3 .column-3 {
       	width: 70px !important;
       }
   
       .tablepress-id-3 .column-4 {
       	width: 70px !important;
       }
   
       .tablepress-id-3 .column-5 {
       	width: 70px !important;
       }
   
       .tablepress-id-3 .column-6 {
       	width: 70px !important;
       }
   
       .tablepress-id-1,
       .tablepress-id-1 tr,
       .tablepress-id-1 tbody td,
        {
       	font-size: 14px;
       	font-weight: 250;
       	color: #000;
       	border: none;
       }
   
       .tablepress td {
       	border: 1px solid #DDDDDD;
       }
   
       .tablepress-id-1 tbody td {
       	background-color: #ff0000;
       }
   
       .tablepress .row-hover tr:hover td {
       	background-color: #8FD8D8;
       }
   
       .tablepress-id-1 .row-71 td,
       .tablepress-id-1 .row-73 td,
       .tablepress-id-1 .row-75 td,
       .tablepress-id-1 .row-77 td,
       .tablepress-id-1 .row-79 td,
       .tablepress-id-1 .row-81 td,
       .tablepress-id-1 .row-83 td,
       .tablepress-id-1 .row-85 td,
       .tablepress-id-1 .row-87 td,
       .tablepress-id-1 .row-89 td,
       .tablepress-id-1 .row-91 td,
       .tablepress-id-1 .row-93 td,
       .tablepress-id-1 .row-95 td,
       .tablepress-id-1 .row-97 td,
       .tablepress-id-1 .row-99 td,
       .tablepress-id-1 .row-101 td,
       .tablepress-id-1 .row-103 td,
       .tablepress-id-1 .row-105 td,
       .tablepress-id-1 .row-107 td,
       .tablepress-id-1 .row-109 td,
       .tablepress-id-1 .row-111 td,
       .tablepress-id-1 .row-113 td,
       .tablepress-id-1 .row-115 td,
       .tablepress-id-1 .row-117 td,
       .tablepress-id-1 .row-119 td,
       .tablepress-id-1 .row-121 td,
       .tablepress-id-1 .row-127 td,
       .tablepress-id-1 .row-131 td,
       .tablepress-id-1 .row-135 td,
       .tablepress-id-1 .row-137 td,
       .tablepress-id-1 .row-141 td,
       .tablepress-id-1 .row-149 td,
       .tablepress-id-1 .row-151 td,
       .tablepress-id-1 .row-153 td,
       .tablepress-id-1 .row-157 td,
       .tablepress-id-1 .row-163 td,
       .tablepress-id-1 .row-177 td,
       .tablepress-id-1 .row-181 td,
       .tablepress-id-1 .row-185 td,
       .tablepress-id-1 .row-189 td,
       .tablepress-id-1 .row-193 td,
       .tablepress-id-1 .row-195 td,
       .tablepress-id-1 .row-201 td,
       .tablepress-id-1 .row-206 td,
       .tablepress-id-1 .row-207 td {
       	background-color: #FF3333;
       }
   
       .tablepress-id-1 tbody td {
       	font-weight: bold;
       }
   
       .tablepress-id-1 .row-36 td,
       .tablepress-id-1 .row-96 td,
       .tablepress-id-1 .row-104 td,
       .tablepress-id-1 .row-154 td {
       	background-color: #99CCFF;
       }
   
       .tablepress-id-1 .row-131 td {
       	background-color: #66FF66;
       }
       ```
   
 * is my code and the url to the table is [http://xattest.org/powers/](http://xattest.org/powers/)
   im not sure why its not coloring most of the table on the numbers i picked
 * [http://wordpress.org/extend/plugins/tablepress/](http://wordpress.org/extend/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/table-color-error/#post-3486545)
 * Hi Paul,
 * thanks for the post, and sorry for the trouble.
    (First of all: No need to post
   your code here, I can see that in the page 🙂 )
 * Now, from what I can see, there are many rows on the page, that are colored properly.
   Can you please point me to a table and row that are not colored according to 
   your intended code?
 * Regards,
    Tobias
 *  Thread Starter [PaulFreeWebs](https://wordpress.org/support/users/paulfreewebs/)
 * (@paulfreewebs)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/table-color-error/#post-3486546)
 * this can be closed now it was because we changed blog theme and then it stopped
   the code from working properly, they have decided they liked the old theme better
   which is where the code works
 * thanks paul
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/table-color-error/#post-3486547)
 * Hi Paul,
 * ah, ok. That makes sense then. It might be possible that the new theme also contained
   CSS that colored the rows, and that that CSS was more “aggressive”.
    Good to 
   hear that switching back solved it.
 * Best wishes,
    Tobias
 *  Thread Starter [PaulFreeWebs](https://wordpress.org/support/users/paulfreewebs/)
 * (@paulfreewebs)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/table-color-error/#post-3486620)
 * i have another question how can i just color 1 collom, thought i ask here instead
   of making a new post
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/table-color-error/#post-3486630)
 * Hi,
 * yes, that’s possible, and you actually have used the necessary commands already,
   you’ll just need to combine them 🙂
    It works just like setting the width of 
   a column, but instead changing the background color:
 *     ```
       .tablepress-id-3 .odd .column-2,
       .tablepress-id-3 .even .column-2 {
       	background-color: #ff0000;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [PaulFreeWebs](https://wordpress.org/support/users/paulfreewebs/)
 * (@paulfreewebs)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/table-color-error/#post-3486631)
 * thanks for this code
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/table-color-error/#post-3486632)
 * Hi,
 * sure, no problem! You are very welcome!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](http://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!

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

The topic ‘Table color error?’ 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/)

 * 7 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/table-color-error/#post-3486632)
 * Status: resolved