• Resolved Todd Mogilner

    (@mogilner)


    I have a table which I have made. In that table I have several rows needed to be highlighted with one of three colors. From looking through the support site, it looks like the coding I am suppose to use is the following:

    .tablepress-id-2 .row-5 td,
    .tablepress-id-2 .row-7 td,
    .tablepress-id-2 .row-10 td,
    .tablepress-id-2 .row-15 td,
    .tablepress-id-2 .row-22 td,
    .tablepress-id-2 .row-26 td,
    .tablepress-id-2 .row-33 td {
    background-color: #99a3ff;
    }

    .tablepress-id-2 .row-13 td,
    .tablepress-id-2 .row-17 td,
    .tablepress-id-2 .row-30 td,
    .tablepress-id-2 .row-31 td,
    .tablepress-id-2 .row-36 td {
    background-color: #fff599;
    }

    .tablepress-id-2 .row-20 td,
    .tablepress-id-2 .row-37 td {
    background-color: #ff99a3;
    }

    Every once in a while the row colors will show up in the calendar, but not often.

    The link is http://kids4truth.plbc.org/calendar/.

    Please let me know how to code this correctly so I can get the three row colors into the calendar.

    Thanks
    Todd Mogilner

    https://wordpress.org/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi Todd,

    thanks for your post, and sorry for the trouble.

    I just checked your link and the background colors are applied properly, I can see red, yellow, and blue rows.
    So, everything is working totally fine, from what I can see.

    Regards,
    Tobias

    Well this is a good static solution; I tried to get something like using your php code plugin to color the td background below the string value but it does not worK; I get simply an empty cell. How can apply a conditional color background to a cell? (CSV or Excel file format are obviously not recognised)
    Thanks
    Massimo

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Can you please provide some more details here? What “php code plugin” are you refering to and how is it not working?

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS Colors not working in Table’ is closed to new replies.