• Resolved Pete Bog

    (@pete-bog)


    Hi,
    is it possible to color cells based on their content?
    F.i. I have a table with a few empty cells.
    I would like to give those cells a different color.
    Kind regards,
    Robert

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, you could try adding this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-id-123 tbody td:empty {
    	background-color: #ff0000;
    }

    Change the 123 to the correct table ID.

    Regards,
    Tobias

    Thread Starter Pete Bog

    (@pete-bog)

    Thanks!
    that did the trick.
    Frohe Weinachten ??
    m.fr.gr.,
    Robert

    • This reply was modified 6 years, 11 months ago by Pete Bog.
    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Color empty cells’ is closed to new replies.