Title: Custom CSS
Last modified: September 11, 2023

---

# Custom CSS

 *  Resolved [bejopi](https://wordpress.org/support/users/bejopi/)
 * (@bejopi)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/custom-css-304/)
 * Hi,
 * I was using custom CSS to change the text color inside all my tables and it worked
   well during years.
   For a few days it doesn’t work anymore, the text remains black.
 * My CSS commands are :
 *     ```wp-block-code
       .tablepress tbody td {color: #1F0091;}
   
       .tablepress thead th,.tablepress tfoot th {background-color: #59c234;color: #1f0091;}
   
       .tablepress-id-3 .column-1.tablepress-id-3 .column-2 {width: 100px;}
   
       .tablepress-id-10 {width: auto;margin: 0 auto 1em;}
   
       .tablepress .odd td {background-color: #e8e8e8;}
   
       .tablepress .even td {background-color: #e0e0e0;}
   
       .tablepress {border-width: 1px;border-style: solid;border-color: black;}
   
       .tablepress td {border-width: 1px;border-style: solid;border-color: black;}
   
       .tablepress-id-6 .column-1 {width: 200px;}
       ```
   
 * Is sommething wrong ?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-css-304%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/custom-css-304/#post-17041858)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * This might be related to the Alternating Row Colors feature here.
 * To get the colors right again, please remove
 *     ```wp-block-code
       .tablepress tbody td {
         color: #1F0091;
       }
       ```
   
 * and instead add
 *     ```wp-block-code
       .tablepress {
         --text-color: #1f0091;
       }
       ```
   
 * in that location.
 * (This also uses the new recommended syntax for this.)
 * Regards,
   Tobias
 *  Thread Starter [bejopi](https://wordpress.org/support/users/bejopi/)
 * (@bejopi)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/custom-css-304/#post-17041945)
 * Thank you for your quick answer, Tobias. 
   Everything works now.
 * Regards,
   bejopi
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/custom-css-304/#post-17042430)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
   Tobias
 * P.S.: In case you haven’t, please rate TablePress [here](https://wordpress.org/support/plugin/tablepress/reviews/#new-post)
   in the plugin directory. Thanks!

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

The topic ‘Custom CSS’ 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: [2 years, 9 months ago](https://wordpress.org/support/topic/custom-css-304/#post-17042430)
 * Status: resolved