• Resolved Jiks

    (@jiks)


    Hello!

    1. I would like to know how can I center text in the header and cells. Is it possible using some CSS?

    2. Is there any way to assign different colors for positive and negative numbers inside the tables using JS code? I don’t want to use conditional formatting.

    Thanks ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wpDataTables

    (@wpdatatables)

    Hi there, thank you for your inquiry and sorry for the delayed reply,

    1. Yes, you can use something like:
    table.wpDataTable td, table.wpDataTable th { text-align: center !important; }

    2. If you know some JS you can write a script – but it would be a bit complex to explain in just a couple of lines. Conditional formatting solves this issue, not sure why you don’t want to use it ??

    Thanks!

    Thread Starter Jiks

    (@jiks)

    Hi,

    No problem! I managed to solve question 1 already. Anyway thanks for the reply.
    I didn’t want to use conditional formatting at first due to a more complex layout that I wanted to achieve and JS was required, but in the meantime I already ditched it.

    Thanks! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Center text in cells; Different colors for positive and negative numbers’ is closed to new replies.