• Resolved Justine13

    (@justine13)


    Hello,

    I just installed this plugin on my site. The tables serve me to display prices and dates. The width of my columns are very small and the figures put themselves under each other. How can I do for column widths automatically adapts to the content?

    Thank you for your help

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter Justine13

    (@justine13)

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for the link!

    The only real chance that I see here (if you want to keep the dates and prices in a row and not a column), would be to prevent line breaks in the cells, e.g. with this “Custom CSS” on the “Plugin Options” screen of TablePress:

    .tablepress-id-10 th,
    .tablepress-id-10 td {
      white-space: nowrap;
    }

    Regards,
    Tobias

    Thread Starter Justine13

    (@justine13)

    This is perfect thank you very much, that I should just separates cells by border to make it clearer … Do you know where I can change / add the code? and what code?

    thank you a lot

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    to add a border, you could e.g. extend the code to

    .tablepress-id-10 th,
    .tablepress-id-10 td {
      white-space: nowrap;
      border-left: 1px solid #b6d889;
    }

    Regards,
    Tobias

    Thread Starter Justine13

    (@justine13)

    Thank you very much for your help and quick response, the support is great!

    I will focus the text of my cells and it will be perfect 😉

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘width column’ is closed to new replies.