Wraps a one-column table to fill out all the space provided.

Live demo: hint:
you may disable Javascript on the sample pages to see the original table without transforming

The script formats a table with one column into the table with specified rows amount.

You have to configure 3 parameters in the script source: table id, number of rows and number of cells in a row group (default 1; in this example 3)

After the script is configured, bind it into the <HEAD> - area this way:
<script language="JavaScript" src="tableformatter.js"></script>

Start it by putting this line before the </body>> tag:
<script>
F=new Format(table_id, rows, cells_in_group);
F.rebuild()
</script>


Download the source
1. Format a vertical table
Rows:   2. Click here to see how to format a horizontal table
-
Test1
-
-
Test2
-
-
Test3
-
-
Test4
-
-
Test5
-
-
Test6
-
-
Test7
-
-
Test8
-
-
Test9
-
-
Test10
-
-
Test11
-
-
Test12
-
-
Test13
-
-
Test14
-


To format the table once more, reload the page.