• Resolved staceyk

    (@staceyk)


    Hi, I want the background for all rows in my table to be white (for all tables)…unless I specifically put code in the system indicating that I want a color. I have tried using this code (both with and without table identifier):

    .tablepress-id-16 td {
    background-color: #ffffff;
    }

    However, I can still see where the alternating rows have a slight grayish tinge to them even though I have everything unchecked. Thoughts? I have checked in IE, Firefox and Chrome and I see it.

    https://ww.wp.xz.cn/plugins/tablepress/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter staceyk

    (@staceyk)

    I also tried this code:

    .tablepress .odd td {
    background-color: #ffffff;
    }

    .tablepress .even td {
    background-color: #ffffff;
    }

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The reason for this might be that your theme also adds an alternating row color effect to the tables. To fix this, you can try to be more strict with the CSS for TablePress, by adding the !important keyword:

    .tablepress-id-16 th {
      background-color: #ffffff !important;
    }

    Regards,
    Tobias

    Thread Starter staceyk

    (@staceyk)

    Hmmm, that did not work for me. I am using the Customizr theme if that helps.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    argh, I made a typo. It needs to be td and not th of course:

    .tablepress-id-16 td {
      background-color: #ffffff !important;
    }

    Regards,
    Tobias

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Background color’ is closed to new replies.