Title: Background color
Last modified: May 17, 2018

---

# Background color

 *  Resolved [dadams76](https://wordpress.org/support/users/dadams76/)
 * (@dadams76)
 * [8 years ago](https://wordpress.org/support/topic/background-color-142/)
 * Hi Tobias again,
    I want to add background color to my table for looks. The CSS
   I used doesn’t work. What did I do wrong?
 * Thanks again.
 * Dave
    .tablepress-id-5 { background-color: #FFFF99; }
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbackground-color-142%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)
 * [8 years ago](https://wordpress.org/support/topic/background-color-142/#post-10292085)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * This would give a background color to the table element, but the table row elements(
   that are “above” the table element from a visual perspective) are white, due 
   to your CSS. So, you will basically have to assign a background color to the 
   rows, as you are doing already. Now, as you will be having the dates in every
   second row, we can use the same trick that the alternating row colors use. So,
   I would recommend that you uncheck the “Table Head” checkbox on the table’s “
   Edit” screen and then use
 *     ```
       .tablepress-id-5 .odd td {
       	text-decoration: underline;
       	font-weight: Bold;
       	font-family: Tahoma;
       	font-size: 20px;
       	background-color: #FFFFFF;
       }
       .tablepress-id-5 .even td {
       	background-color: #cccccc;
       }
       ```
   
 * for the CSS.
 * Regards,
    Tobias
 *  Thread Starter [dadams76](https://wordpress.org/support/users/dadams76/)
 * (@dadams76)
 * [8 years ago](https://wordpress.org/support/topic/background-color-142/#post-10292275)
 * Tobias,
    This worked.
 * Thank You,
    Dave
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [8 years ago](https://wordpress.org/support/topic/background-color-142/#post-10292460)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias

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

The topic ‘Background color’ 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

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

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/background-color-142/#post-10292460)
 * Status: resolved