Title: Newbie to CSS
Last modified: April 17, 2019

---

# Newbie to CSS

 *  Resolved [olyinfos](https://wordpress.org/support/users/olyinfos/)
 * (@olyinfos)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/newbie-to-css/)
 * Hi,
 * i am a newbie to CSS. I want to add css class and code to format my tables.
    
   If column 1 row = Geoffnet then the cell should be green If this cell = Geschlossen
   then red.
 * I can add this to CSS of the plugin:
    .class {
 * }
    .tablepress .highlight-1 { color: #81F781; } .tablepress .highlight-2 { color:#
   F78181; }
 * But i am struggling with creating the necessary css class. Where should i do 
   this:
    <span class=”highlight-1″>Geoeffnet</span> <span class=”highlight-2″>Geschlossen
   </span>
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnewbie-to-css%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)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/newbie-to-css/#post-11439076)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 *     ```
       <span class=”highlight-1″>Geoeffnet</span>
       <span class=”highlight-2″>Geschlossen</span>
       ```
   
 * would go into your table, in the cell where you have `Geoeffnet` or `Geschlossen`.
 * This is basically HTML code that replaces the pure text.
 * Regards,
    Tobias
 *  [sputtering](https://wordpress.org/support/users/sputtering/)
 * (@sputtering)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/newbie-to-css/#post-11439096)
 * <span class=”highlight-1″>Geoeffnet</span>
    <span class=”highlight-2″>Geschlossen
   </span>
 * EWWWWW! Looks like HTML and CSS are getting confused…
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/newbie-to-css/#post-11439187)
 * Hi,
 * no, not really 🙂
 * You use that HTML in the table to define the content. Then, you use the CSS to
   style the content. To be able to “talk to each other”, they use the same CSS 
   classes.
 * Regards,
    Tobias

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

The topic ‘Newbie to 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/)

## Tags

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

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