• Resolved riw

    (@riw)


    I’m trying to change the background of a table to white (rather than grey) –the table is at the bottom of this page:

    http://sts.shepherds.edu

    And the code I have inserted is:

    .tablepress-id-2 td {
    background-color: #ffffff;
    color: #ffffff;
    }
    .tablepress-id-2 td {
    font-size: 14px;
    }

    The font size seems to work, but not the color or background color. I have have the alternating rows, etc., all turned off… The preview looks correct, so there must be something overwriting the css, but I can’t imagine what it is.

    Any ideas?

    Thanks!

    Russ

    http://wordpress.org/extend/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi Russ,

    thanks for your question. The problem in that table indeed comes from your theme. It is adding its own alternating row colors, and due to that, that row is grey instead of white.
    To change that, please try adding

    div.post .tablepress tr.alt td {
      background-color: #ffffff;
    }

    to the “Custom CSS”. To then also make the links black, add

    .tablepress-id-2 a {
      color: #000000;
    }

    Your first block of CSS code is then not necessary.

    Regards,
    Tobias

    Thread Starter riw

    (@riw)

    Cool! That worked… I was thinking I might need to put this code in the theme css override area, but this works well.

    Thanks!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    very cool! Great to hear that this worked so easily! 🙂

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate the plugin here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can't Change Background Color’ is closed to new replies.