• Resolved SethO

    (@setho)


    Hi, great plugin!

    I am having issue getting the custom css to work. I need a certain number of columns in a row to be a certain color.

    I have tried this:

    .tablepress-id-1 .row-2
    .column-2,
    .column-3,
    .column-4 {
    background-color: #3366ff;
    }

    But only column-2 changes color.

    https://wordpress.org/plugins/tablepress/

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    That CSS is slighly incorrect. You will always have to repeat the entire selector part, due to how CSS works:

    .tablepress-id-1 .row-2 .column-2,
    .tablepress-id-1 .row-2 .column-3,
    .tablepress-id-1 .row-2 .column-4 {
      background-color: #3366ff;
    }

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Multiple Colors for Columns’ is closed to new replies.