WordPress.org

Forums

TablePress
[resolved] css (6 posts)

  1. enquirer32
    Member
    Posted 1 year 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 1 year 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 1 year ago #

    Thanks.

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

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

    Regards,
    Tobias

  5. enquirer32
    Member
    Posted 1 year 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 1 year 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TablePress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags