• Resolved olyinfos

    (@olyinfos)


    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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    <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

    (@tobiasbg)

    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.