• Resolved thief_pl

    (@thief_pl)


    Can someone explain why this styling doesn’t work?

    With the code below I’m trying to change the text color of Header and Footer rows.

    .post-content .tablepress thead,
    .post-content .tablepress tfoot {
    	color: #ffffff;
    	word-break: normal;
    }

    With this code I’m trying to change the links (link & visited) color but i want to keep the current hoover color that comes with the theme.

    .post-content .tablepress thead a,
    .post-content .tablepress tfoot a {
    	color: #ffffff;
    	word-break: normal;
    }

    And finally with this code i’m trying to change the background color.

    .post-content .tablepress thead,
    .post-content .tablepress tfoot {
    	background-color: #234e86;
    }
    • This topic was modified 6 years, 10 months ago by thief_pl.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for the link! For this, why don’t you stick to the examples in the FAQ, e.g. https://tablepress.org/faq/change-background-color-table-head-row/ instead of what you tried?

    Regards,
    Tobias

    Thread Starter thief_pl

    (@thief_pl)

    I got it, thanks for help.

    .tablepress thead th,
    .tablepress tfoot th {
    	background-color: #234e86;
    	color: #ffffff;
    }
    
    .tablepress thead a,
    .tablepress tfoot a {
    	color: #ffffff;
    	word-break: normal;
    }
    
    .tablepress thead a:hover,
    .tablepress tfoot a:hover {
    	color: #00b38f;
    	word-break: normal;
    }
    • This reply was modified 6 years, 10 months ago by thief_pl.
    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 ‘Styling Problems’ is closed to new replies.