• Resolved R_Hemingway

    (@r_hemingway)


    Hi all,

    Currently using Tablepress (great plugin by the way) and I’m trying to style the text colour in the Header row.

    Current custom CSS looks like this:

    .tablepress thead th,
    .tablepress tfoot th {
    	background-color: #D8372F;
    }
    
    .tablepress tbody td {
    	font-family: Tahoma;
    	font-size: 14px;
    	color: #181717;
    }
    
    .tablepress thead .sorting_asc,
    .tablepress thead .sorting_desc,
    .tablepress thead .sorting:hover {
    	background-color: #ffffff;
    }

    I am also adding

    text-color: #181717;

    to the header/footer section, but every time I save the custom CSS it says it has saved successfully, but just shows the original code without the ‘text-color’ line.

    Thanks in advance for your help!

    https://www.ads-software.com/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your question and sorry for the trouble!

    That’s actually good to hear ?? This means that everything works as intended.

    The reason why your changes do not save is, that

    text-color: #181717;

    is invalid CSS. The text color is defined by the plain color property, so just use

    color: #181717;

    and everything will work fine.

    Regards,
    Tobias

    Thread Starter R_Hemingway

    (@r_hemingway)

    Aha!

    Thanks very much, that worked perfectly!

    I made the assumption that I had to reference something, as is the case with ‘background-‘ for example.

    I’ll remember that in future, much appreciated!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

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

    Yes, this is one of the edge cases in CSS, where one can wonder, why they named it “color” and not “text-color”. Most likely, this can be used for other elements as well, were the “foreground” is not text, so that “text-color” would then not make sense.

    Best wishes,
    Tobias

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom CSS doesn't appear to be saving’ is closed to new replies.