• Resolved premmarga

    (@premmarga)


    Hi Tobias,
    I really like your plugin…
    but could you have a look why this is not working. I have put this code. But the odd rows are not working.
    I could do a color changing by other code for each row, but I thought to ask you first.
    Thank you
    Marga

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

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

    The page I need help with: [log in to see the link]

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

    (@premmarga)

    Hi Tobias,
    me again
    I found an answer, on the forum but I tried to put this code, but it is still not working.
    And it is in the plug in option screen, on top.

    .tablepress tbody td {
    background-color: #f8f8f8;
    }

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The reason for this is that your theme is also adding an alternating row background colors effect. To make your colors work, just change the command for the odd rows to

    background-color: #FFF499 !important;
    

    Adding the !important flag there basically increases the priority of the command.

    Regards,
    Tobias

    Thread Starter premmarga

    (@premmarga)

    great thanx again Tobias,
    I tried this wrongly, grrr….

    gave you 5 stars….

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

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

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

The topic ‘Backgroundcolor is not working is this right’ is closed to new replies.