• Resolved mkwpuser

    (@mkwpuser)


    Hi Tobias,

    First I wanted to thank you for this very helpful plugin !

    Not a big issue but since the new update the body font color in my tables remain in black.

    I’ve the following set up in the tablepress options:

    tbody td {
    font-family: Comfortaa;
    font-size: 18px;
    font-weight: bold;
    color: #000374;
    text-align: center;
    vertical-align: middle;
    }

    Everything works fine on the website but the color that remains black instead of turning in #000374 color.

    Hope this can help !

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    I want to try to help with this problem.
    If yo add important to the rule it should work?

    color: #000374 !important;

    I hope I could solve your problem?

    Have a nice day and Merry Christmas

    Thread Starter mkwpuser

    (@mkwpuser)

    Thanks createline, the problem is solved !

    Merry Christmas too !

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Indeed, adding the !important should fix this. A solution that would be a bit more flexible in the future (e.g. if you want to change colors for single tables) would be to instead add .tablepress to the class selector, like

    .tablepress tbody td {
      font-family: Comfortaa;
      font-size: 18px;
      font-weight: bold;
      color: #000374;
      text-align: center;
      vertical-align: middle;
    }

    Regards,
    Tobias

    Thread Starter mkwpuser

    (@mkwpuser)

    Thanks Tobias,

    Yes the !important solved to problem and thanks for your advice regarding the other solution.

    Best regards

    Hi Tobias,

    fyi
    your solution doesn’t solve the problem.
    I tried this first on my table, but it still shows black?

    Merry Christmas

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi @mkwpuser,

    good to hear that this helped!

    @createline: This likely means that your theme is maybe also setting table row colors in its CSS code (as TablePress doesn’t set any black row colors). There, the theme likely uses more complex CSS selectors which end up having a higher priority when the CSS is applied. In those cases, using !important is perfectly fine!

    Best wishes,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘font color css’ is closed to new replies.