• Resolved dirijor

    (@dirijor)


    Hello,

    I am not able to prevent the table from rendering with alternating colors. I was able to get half the table rows to render with the desired color, but the even rows remain white. (They were blue before I added the following CSS from an earlier forum post:

    .tablepress-id-1 tbody td {
    background-color: #f3ebde;
    }

    I would like all rows to render with the above color.

    I would also like the text in the table to render with the following color: #352003.

    Thank you for your kind assistance.

    Cordially,

    Charles Gambetta, DMA

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

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    The cause for this is that your theme is also adding an alternating row colors effect to tables on your site.
    You’ll therefore have to raise the priority of your code, e.g. by appending the !important keyword:

    .tablepress-id-1 tbody td {
      background-color: #f3ebde !important;
      color: #352003 !important;
    }

    This will also change the text color.

    Regards,
    Tobias

    Gr8! I tried this and it worked on all tables 🙂

    .tablepress tbody td {
    	background-color: #f3ebde !important;
    	color: #352003 !important;
    }
    Plugin Author TobiasBg

    (@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!

    Thread Starter dirijor

    (@dirijor)

    Many thanks for providing the needed CSS. I’ll rate TablePress and make a donation very soon.

    Cordially,

    Charles Gambetta, DMA

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!
    And thanks for wanting to donate, I really appreciate it!

    Best wishes,
    Tobias

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot Make Table Background Color Uniform’ is closed to new replies.