WordPress.org

Support

Support » Plugins and Hacks » [Resolved] alignment of a row to the right

[Resolved] alignment of a row to the right

  • 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/

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

    @tobiasbg

    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

    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

    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

    Plugin Author TobiasBg

    @tobiasbg

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] alignment of a row to the right’ is closed to new replies.