WordPress.org

Forums

TablePress
[resolved] Column width problem (4 posts)

  1. jonhiogs
    Member
    Posted 1 year ago #

    If I use below in a three column table

    .tablepress-id-7 .column-1,
    .tablepress-id-7 .column-2 {
    width: 150px;
    }

    ~Columns 1 and 2 go to specified width and column 3 goes to default width

    However if i use to get all columns to 150px

    .tablepress-id-7 .column-1,
    .tablepress-id-7 .column-2,
    .tablepress-id-7 .column-3 {
    width: 150px;
    }

    none of the columns go to specified width, they all are standard width, i.e. each is a 1/3 of page width???

    Im using the customizr theme and am very new to all this so feel slightly out of my depth!! Go easy on me!!

    Thanks

    https://wordpress.org/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thanks for your post, and sorry for the trouble.

    If you want to change all three columns of a three-column table, you'll also need to tell the table to not stretch to the full width. For that, please try adding this as well:

    .tablepress-id-7 {
      width: auto;
    }

    Regards,
    Tobias

  3. jonhiogs
    Member
    Posted 1 year ago #

    Perfect, thanks for the speedy reply!!

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

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

    Best wishes,
    Tobias

    P.S.: In case you haven't, please rate TablePress here in the plugin directory. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TablePress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic