Title: Table Header Colour
Last modified: December 10, 2019

---

# Table Header Colour

 *  Resolved [jfortune](https://wordpress.org/support/users/jfortune/)
 * (@jfortune)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/table-header-colour/)
 * I have tried as many ways I can think of of changing the colours of the header
   row of a particular 2-column table but none work. Can you tell me what is the
   correct code?
 * Sorry if I’m being stupid. Thanks.
 * .entry .tablepress thead th,
    .entry .tablepress tfoot th { background-color:#
   43ADBC; color: white; } /** From your FAQ but it doesn’t work. And also, how 
   would I indicate which table with this code?
 * .tablepress-id-19 .row-1 {
    background-color: #43ADBC; color: white; } /** !doesn’t
   work
 * .tablepress-id-19 .row-1 .column-1 {
    background-color: white; color: black; }.
   tablepress-id-19 .row-1 .column-2 { background-color: white; color: black; } ?**!
   doesn’t work

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/table-header-colour/#post-12227102)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Normally,
 *     ```
       .tablepress thead th {
         background-color: #43ADBC;
         color: #ffffff;
       }
       ```
   
 * works (with the `.entry` at the beginning).
 * If not, can you please post a link to the page with the table where this problem
   happens, so that I can take a direct look? Thanks!
 * Regards,
    Tobias
 *  Thread Starter [jfortune](https://wordpress.org/support/users/jfortune/)
 * (@jfortune)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/table-header-colour/#post-12231865)
 * So if you have three tables on one page they all have to have the same header
   colour.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/table-header-colour/#post-12232018)
 * Hi,
 * yes, with this code, they would all have the same color. To change individual
   header rows, you can use
 *     ```
       .tablepress-id-123 thead th {
         background-color: #43ADBC;
         color: #ffffff;
       }
       ```
   
 * where the 123 has to be changed to the table’s ID.
 * Regards,
    Tobias

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

The topic ‘Table Header Colour’ 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: [6 years, 6 months ago](https://wordpress.org/support/topic/table-header-colour/#post-12232018)
 * Status: resolved