WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] css (6 posts)

  1. enquirer32
    Member
    Posted 6 months ago #

    Can one use css to alter position of text/integers in tables (eg align left, center, right)?

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 6 months ago #

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, to change the alignment of the text in for example a single column, you can add this to the "Custom CSS" textarea on the "Plugin Options" screen of TablePress:

    .tablepress-id-123 .column-3 {
      text-align: right;
    }

    Just adjust the table ID and column number as necessary.

    Regards,
    Tobias

  3. enquirer32
    Member
    Posted 6 months ago #

    Thanks.

  4. TobiasBg
    Member
    Plugin Author

    Posted 6 months ago #

    Hi,

    no problem, you are very welcome! :-) Good to hear that this helped!

    Regards,
    Tobias

  5. enquirer32
    Member
    Posted 6 months ago #

    I suppose this doesn't work for rows - anyway I tried it and the class does not exist?

  6. TobiasBg
    Member
    Plugin Author

    Posted 6 months ago #

    Hi,

    no, it does work for rows, but you'll have to append the actual cell then:

    .tablepress-id-123 .row-3 td {
      text-align: right;
    }

    Regards,
    Tobias

Reply

You must log in to post.

About this Plugin

About this Topic

Tags