• Resolved angeliti

    (@angeliti)


    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/

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

    (@tobiasbg)

    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

    Thread Starter angeliti

    (@angeliti)

    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.-

    Plugin Author TobiasBg

    (@tobiasbg)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Problem aligning text in tables’ is closed to new replies.