• Resolved saharsahar

    (@saharsahar)


    Hello

    I need justify cell of table.

    I want the text in each cell to be in the middle

    please help me

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, you can add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-id-123 th,
    .tablepress-id-123 td {
      text-align: center;
    }

    where 123 is the table ID.

    Regards,
    Tobias

    Thread Starter saharsahar

    (@saharsahar)

    Hello

    Thanks alot

    I do it For every table ????

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    for that use the general .tablepress CSS class instead of .tablepress-id-123, i.e. use

    .tablepress th,
    .tablepress td {
      text-align: center;
    }

    Regards,
    Tobias

    Thread Starter saharsahar

    (@saharsahar)

    Hi

    Thanks alot

    What is the id of all the tables?

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    only the individual tables have an ID. That’s when you use .tablepress-id-123 where 123 is the ID.

    If you want to do something for all tables at once, just use .tablepress in the CSS code.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Table justify’ is closed to new replies.