WordPress.org

Forums

WP-Table Reloaded
[resolved] Problem aligning text in tables (4 posts)

  1. angeliti
    Member
    Posted 3 years ago #

    Hi Tobias,

    I'm finding problems aligning text (both vertically and horizontally) in rows other than the header. I'm using this CSS in the plugin options page:

    .wp-table-reloaded-id-1 th {
    text-align: center !important;
    vertical-align: middle !important;
    };

    Howver, it only affects the header row of the table. All the other rows are untouched. I've tried using .wp-table-reloaded th with the same result.

    Any ideas?

    Thanks a lot,
    Angel.-

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Angel,

    thanks for your post.

    You just need a tiny change in your code. For table body cells, the correct tag is td, and not th as it is for header cells. So, in your code, just replace the first line with

    .wp-table-reloaded-id-1 td {

    and you are good to go.

    Best wishes,
    Tobias

  3. angeliti
    Member
    Posted 3 years ago #

    Oh, you are completely right, what a beginner's mistake...

    Yep, using td made the trick. Thanks a lot for the quick answer, Tobias! I'm really impressed by your plug-in, it's absolutely awesome :)

    BTW, I think it could be a good idea to add this CSS code to the FAQ in your webpage. I bet centering the text is a common task for the plug-in users.

    Best regards,
    Angel.-

  4. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Angel,

    great :-) You are very welcome!

    I've been planning to update the FAQ for a while, so I'll add that to the list :-)

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Table Reloaded
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic