[Resolved] Change Stripe effect table colour

Home Forums Support [Resolved] Change Stripe effect table colour

Home Forums Support Change Stripe effect table colour

  • This topic has 8 replies, 2 voices, and was last updated 3 years ago by David.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1736449
    chris

    Hi im trying to change the stripe effect on the table where its white and grey, i would like to make the white and grey two different shades of blue, this is the CSS i have been trying to play around with to target the two separate colour rows but cannot find what so ever other than changing the full column to the same colour.

    .gb-container.gb-container-4e782949 .wp-block-table table > tbody > tr > td:nth-child(4) {
    background-color: orange;
    }

    I have tried playing with tr > td: etc but struggling as i say to target two classes in one table..

    Any idea what i could try next?

    #1736460
    chris

    I have figured out how to do one half of the two colours, with this CSS i have acheved the text and background colour.

    Just how would i change the white background that looks like its using the same class?

    Im using this:

    .wp-block-table.wp-block-table.is-style-stripes {
    background-color: #015bd1;
    color: white;
    }

    #1736535
    chris

    Also how do i delete a row that is empty now? thanks

    #1736556
    David
    Staff
    Customer Support

    Hi there,

    which background do you want to change ? perhaps a screenshot will help.

    Removing a row in the Block editor – see here:

    2021-04-16_12-22-24

    #1736567
    chris

    Sure im tying to change the grey boxes on the first coll.

    The table is on “Striped” setting and so targering that thrgouh css but need the grey bits to be another shade of blue…

    Thanks.

    CSS working currently to make half the boxes blue:

    .wp-block-table.wp-block-table.is-style-stripes {
    background-color: #015bd1;
    color: white;
    }

    #1736569
    chris

    sorry attached link in private for screenshot of what i mean

    #1736639
    David
    Staff
    Customer Support

    Aah ok so you would use this CSS:

    .wp-block-table.is-style-stripes tbody tr:nth-child(2n+1) {
        background-color: #f0f0f0;
    }

    Change the #f0f0f0 for the color your require

    #1737239
    chris

    Spot on thank you David.

    #1737408
    David
    Staff
    Customer Support

    Glad to be of help

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.