[Resolved] How can I add a color to the top section of the table

Home Forums Support [Resolved] How can I add a color to the top section of the table

Home Forums Support How can I add a color to the top section of the table

  • This topic has 1 reply, 2 voices, and was last updated 2 years ago by David.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2168626
    steven

    Hi, How can I add a color to the header section of the table ?

    Thanks you

    #2168924
    David
    Staff
    Customer Support

    Hi therem

    you can use some CSS to change all Block Tables:

    .wp-block-table thead tr {
        background-color: #f00;
        color: #fff;
    }

    If you want it to ONLY affect specific styles then select the table and in Advanced > Additional CSS Class(es) add a custom class eg. table-style-red

    Then use this CSS:

    .table-style-red.wp-block-table thead tr {
        background-color: #f00;
        color: #fff;
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.