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

    (@tobiasbg)

    Hi,

    thanks for your question.

    This is possible with some CSS code like this:

    .wp-table-reloaded-id-123 .column-4 {
      text-align: center !important;
    }

    This will center the text in column 4 of table ID 123.

    To center several columns in one table at the same time, use this structure:

    .wp-table-reloaded-id-123 .column-2,
    .wp-table-reloaded-id-123 .column-4,
    .wp-table-reloaded-id-123 .column-8 {
      text-align: center !important;
    }

    Just adjust that to your table/column as necessary and paste the code into the “Custom CSS” textarea on the “Plugin Options” screen of WP-Table Reloaded.

    Best wishes,
    Tobias

    Hi, I have tried this and my columns will not center. I succeeded in getting my top row to center but not the third and fourth columns. See page http://www.skuttcatholic.com/testing/guidance/scholarships-3/
    Thanks!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post.

    In your “Custom CSS”, there’s only a command to center the contents of column 4, and that is working as intended. You simply have not added a command for column 3, which is why it is not sorted.

    Another thing though: The Custom CSS that you added for the column widths is wrong.
    Please replace this block:

    .wp-table-reloaded-id-1 {
    .column-1 {width: 20%;}
    .column-2 {width: 40%;}
    .column-3 {width: 10%;}
    .column-4 {width: 30%;}

    with this:

    .wp-table-reloaded-id-1 .column-1 {width: 20%;}
    .wp-table-reloaded-id-1 .column-2 {width: 40%;}
    .wp-table-reloaded-id-1 .column-3 {width: 10%;}
    .wp-table-reloaded-id-1 .column-4 {width: 30%;}

    Best wishes,
    Tobias

    Thank you! That did it. I love this plugin!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    awesome, very nice! Thanks for the confirmation!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Individual Column Centering’ is closed to new replies.