• Resolved rakelbara

    (@rakelbara)


    Hi
    Is it somehow possible to automatically give a cell a specific background color if it is empty? I have a very big table (approx 500 lines and 17 columns) with many empty cells, and I would like to have the empty cells have grey background so that they are easily visible.

    Is this possible somehow?
    Thanks in advance!
    Best regards
    Rakel

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 CSS code. For example, add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

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

    Regards,
    Tobias

    Thread Starter rakelbara

    (@rakelbara)

    Thank you so much Tobias! That worked like a charm! ??

    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 ‘Cell background color when cell is empty’ is closed to new replies.