WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Word Wrap (4 posts)

  1. Lazyboy101
    Member
    Posted 1 year ago #

    Hi,

    Sorry to bother, but I have searched all over and cannot find an answer.

    I would like my column to have word wrap. Is this possible?

    The problem. If I type an extremely long word my line keeps going. e.g. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww

    Thank you.

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    due to the way how HTML tables work, this is actually tricky.
    You will need some new CSS code.

    As a starting point, please see this: http://stackoverflow.com/questions/1258416/word-wrap-in-a-html-table

    Then, something like

    .tablepress-id-123 .column-4 {
      word-wrap:break-word;
      width: 100px;
    }

    should work. Note that you'll most likely have to set the width of the column. It might also be necessary to set the table layout, with

    .tablepress-id-123 {
      table-layout: fixed;
    }

    Regards,
    Tobias

  3. Lazyboy101
    Member
    Posted 1 year ago #

    Thank you very much!

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    no problem! :-)

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags