WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] alignment of a row to the right (5 posts)

  1. didis
    Member
    Posted 8 months ago #

    Hi Tobias,
    after a year of pause I try to complete my cms and for all the tables... and having tested several ways I think I will take your plugin to solve my ideas.

    Now a simple question: How to get a complete row with alignment on the right site?

    May I do this (for a single cell) in the "Erweiterter Editor" by html-code too?

    Thanks.

    Best whishes
    Dietmar

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 8 months ago #

    Hi Dietmar,

    thanks for your post, and sorry for the trouble.

    To align the text in a row to the right, you would use CSS code. Using HTML code (which is e.g. generated in the "Erweiterter Editor" is not possible here, unfortunately).
    Please try adding something like this to the "Custom CSS" (Zusatz-CSS) textarea on the "Plugin Options" screen of TablePress:

    .tablepress-is-123 .row-4 td {
      text-align: right;
    }

    In that code, adjust the table ID (here: 123) and the row number (here: 4) as necessary.

    Regards,
    Tobias

  3. didis
    Member
    Posted 8 months ago #

    Thank you, Tobias, for your fast reply...
    But are you shure that it really is

    .tablepress-is-123

    and not

    .tablepress-id-123 ??

    For this input doesn't work...
    Regards
    Thanks
    Dietmar

  4. didis
    Member
    Posted 8 months ago #

    Now I changed it to "d" instead of "s" - and some rows are now aligned to the right, but some not! Every second row keeps on the left...
    So what?
    Regards
    Dietmar

  5. TobiasBg
    Member
    Plugin Author

    Posted 8 months ago #

    Hi Dietmar,

    yes, it needs to be "d", not an "s". Sorry for the mistake...

    Now, it's strange that this only affects every second row. This most likely means that something else (e.g. your theme) also influences the alignment. Please try extending the code to

    .tablepress-id-123 .row-4 td {
      text-align: right !important;
    }

    If that does not help, please post a link to the page with the table, so that I can take a direct look. Thanks!

    Regards,
    Tobias

Reply

You must log in to post.

About this Plugin

About this Topic