WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Cell formatting (8 posts)

  1. WPPaton
    Member
    Posted 1 year ago #

    Wondering how I can simply center all text in a table. I Thought that might be an option with the plugin but I can't seem to find anything. Thanks!

    http://wordpress.org/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your question.

    This is possible with some "Custom CSS" code. Please try adding this to the "Custom CSS" textarea on the "Plugin Options" screen of TablePress:

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

    The 123 has to be changed to the desired table ID.

    Regards,
    Tobias

  3. WPPaton
    Member
    Posted 1 year ago #

    Excellent thanks so while I am on the same topic can you tell me what the custom CSS would be to apply to the following: row, column or cell? Thanks so much for your support!

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    good to hear that this helps!

    For more examples, I suggest to take a look at the TablePress FAQ at http://tablepress.org/faq/
    For example, the question "How can I highlight certain cells or their content?" has an example on how to target a specific cell. From there, it's easy to target a specific column or row, as you'll just have to remove the "unwanted" part from that CSS selector.
    The other questions also show how to target a row, for example.

    Regards,
    Tobias

  5. WPPaton
    Member
    Posted 1 year ago #


  6. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    not sure what happened, but your recent reply came up empty...
    Was that information on the CSS helpful, or is your question still open?

    Regards,
    Tobias

  7. WPPaton
    Member
    Posted 1 year ago #

    Tobias no I am all good thanks and the topic is closed.

  8. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    alright, thanks for the clarification!

    Best wishes,
    Tobias

    P.S.: In case you haven't, please rate TablePress here in the plugin directory. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic