• Resolved andrew55

    (@andrew55)


    Hi,

    Great to find this plugin. We have a comparison table and need to add a background color to just one row, to make it stand out from the rest.

    A long time ago I made edits like this to a table, so I remember it being possible, but that was years ago.

    I know how to create custom css in WordPress.

    Do you have any suggestions on how I can do this, or maybe a resource so I can teach myself?

    Thanks for any help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Imtiaz Rayhan

    (@imtiazrayhan)

    Hi @andrew55,

    That can be done using custom CSS.

    Use the following CSS:

    .wptb-table-container table tr:nth-child(8) {
        background-color: red;
    }

    This will change the 8th row background color to red.

    Please change the value of 8 and red according to your needs.

    Regards.

    Hi @imtiazrayhan
    I have applied the following CSS:

    .wptb-table-container table tr:nth-child(2) {
    background-color: #00ABEC;
    }

    But there is no change to my table. Please let me know if this is correct?

    Regards,

    Holly

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘add css background to one row’ is closed to new replies.