• Resolved pluckytree

    (@pluckytree)


    I’m using TablePress for a simple table with 2 columns filled with text. I would like the text to wrap at the edge of the table cells. This isn’t mentioned in the FAQ or documentation and on this forum it seems people are interested in turning it off. If only I had that problem.

    Right now, my custom CSS is set to this:

    .tablepress-id-1 .column-2 {
    word-wrap: normal;
    word-break: normal;
    table-layout: auto;
    }

    However, I’ve tried quite a few variations with no success. I also just tried .tablepress to see if the CSS was incorrectly written.

    Thanks,

    Chris

    The page I need help with: [log in to see the link]

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Unfortunately, your link is not working for me 🙁 Is that really a published page?

    The CSS that you tried will not really help. You might need something like

    .tablepress-id-1 .column-2 {
      word-break: break-word;
    }

    Regards,
    Tobias

    Thread Starter pluckytree

    (@pluckytree)

    Here’s the URL:

    https://techreflect.net/2018/06/11/macos-tips-app-switcher-tricks/

    I tried what you suggested and it’s currently implemented on that page.

    Thanks,

    Chris

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Chris,

    thanks! Now I can see the table. The reason for this problem is extra HTML code (or with the new block editor rather a wrong block type). Right now, it seems to me that the Shortcode is in a “Preformatted” block. Can you please change that to a “Shortcode” block?

    Regards,
    Tobias

    So, just wondering why this style wasn’t the default.. and THANK YOU for the css, it works great.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    This normally is the browser default, but some themes change it with their own CSS.

    Best wishes,
    Tobias

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

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

The topic ‘Wrapping text in a simple table’ is closed to new replies.