• Resolved bejopi

    (@bejopi)


    Hi,

    I was using custom CSS to change the text color inside all my tables and it worked well during years.
    For a few days it doesn’t work anymore, the text remains black.

    My CSS commands are :

    .tablepress tbody td {
    color: #1F0091;
    } .tablepress thead th,
    .tablepress tfoot th {
    background-color: #59c234;
    color: #1f0091;
    } .tablepress-id-3 .column-1
    .tablepress-id-3 .column-2 {
    width: 100px;
    } .tablepress-id-10 {
    width: auto;
    margin: 0 auto 1em;
    } .tablepress .odd td {
    background-color: #e8e8e8;
    } .tablepress .even td {
    background-color: #e0e0e0;
    } .tablepress {
    border-width: 1px;
    border-style: solid;
    border-color: black;
    } .tablepress td {
    border-width: 1px;
    border-style: solid;
    border-color: black;
    } .tablepress-id-6 .column-1 {
    width: 200px;
    }

    Is sommething wrong ?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This might be related to the Alternating Row Colors feature here.

    To get the colors right again, please remove

    .tablepress tbody td {
      color: #1F0091;
    }

    and instead add

    .tablepress {
      --text-color: #1f0091;
    }

    in that location.

    (This also uses the new recommended syntax for this.)

    Regards,
    Tobias

    Thread Starter bejopi

    (@bejopi)

    Thank you for your quick answer, Tobias.
    Everything works now.

    Regards,
    bejopi

    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 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom CSS’ is closed to new replies.