This question about Documentation: Answered

Automatically wrap long table

According to: http://foswiki.org/System/EditingShorthand :

Contents of table cells wrap automatically as determined by the browser

So why long table are not wrapped on my system? How can I force table wrapping (should I use div?)

For example

Column 1 Column 2 Column 3 Column 4 Column 5 Column 6 Column 7 Column 8 Column 9 Column 10 Column 11 Column 12 Column 13 Column 14 Column 15 Column 16 Column 17 Column 18 Column 19 Column 20 Column 21 Column 22 Column 23 Column 24 Column 25 Column 26 Column 27 Column 28 Column 29 Column 30 Column 31 Column 32 Column 33 Column 34 Column 35 Column 36 Column 37 Column 38 Column 39
Why This column is not properly wrapped Why This column is not properly wrapped ?? Why This column is not properly wrapped ?? Why This column is not properly wrapped ?? Why This column is not properly wrapped ??

I would expect that some column will be displayed in next row. In such way it will be easier for reader to check whole content of the table.

-- MateuszKDzior - 31 Aug 2015

Solution for HTML tables seems to be mentioned here: http://stackoverflow.com/questions/11250501/wrap-long-html-tables-to-next-line

However - if possible - I would like to use only TML/Foswiki syntax.

-- MateuszKDzior - 31 Aug 2015

The documentation you refer to at the top refers to the content within a table cell which do wrap automatically. Table rows do not wrap automatically. That is inherent in HTML, not just Foswiki. The link you provided to possible solution suggest substituting table tags with floated divs which is very different. Foswiki table syntax renders as html table so there is no possible connection to that particular solution.

One partial solution is to wrap your table inside a div and set style as overflow-x: scroll. This is will provide a scroll bar for your long table rather than having it run outside the topic body. Here's what that would look like:

Column 1 Column 2 Column 3 Column 4 Column 5 Column 6 Column 7 Column 8 Column 9 Column 10 Column 11 Column 12 Column 13 Column 14 Column 15 Column 16 Column 17 Column 18 Column 19 Column 20 Column 21 Column 22 Column 23 Column 24 Column 25 Column 26 Column 27 Column 28 Column 29 Column 30 Column 31 Column 32 Column 33 Column 34 Column 35 Column 36 Column 37 Column 38 Column 39
Why This column is not properly wrapped Why This column is not properly wrapped ?? Why This column is not properly wrapped ?? Why This column is not properly wrapped ?? Why This column is not properly wrapped ??

-- Main.LynnwoodBrown - 06 Dec 2015

 

QuestionForm edit

Subject Documentation
Extension
Version Foswiki 2.0.0
Status Answered
Related Topics
Topic revision: r2 - 06 Dec 2015, LynnwoodBrown - This page was cached on 16 Dec 2017 - 21:37.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License