Help:Wiki University Wikitext--Tables - Columns Only

Table with columns only
Let's say you want to install a long list of items such as a list of counties for a state. However you think it would be better to divide the list up into many columns so the list does not show as one very long column. Here is an example of a list of 114 counties that are in four equal columns. I think you will agree that these counties listed in four columns would be better than one column that has 114 items.

How to create column only tables
These tables are really only one row with cells to equal the number of columns you think you'll need.

The above table of counties is a table with only one row and four cells in that row. Each cell contains 29 counties. The last cell has 27 counties. Here is the final product:
 * When this table was created, no one was concerned that items in the list match up with other items. This is not like a table of names and addresses where you want the addresses to stay with the names if it is sorted.
 * Here is the coding with a shortened list of counties:
 * NOTICE there is only one row tag.
 * NOTICE there is only one cell tag for each column.
 * If we wanted the width of the columns to be the same or the width of the table to go across the page, we would insert our width attributes and whatever other attributes we think would make it nicer looking.

Try these out


 Exercises Adair Andrew Atchison Audrain Barry Barton Bates Benton Bollinger Boone Buchanan Butler Caldwell Callaway Camden Cape Girardeau Carroll Carter Cass Cedar
 * Take this list of counties and make a five column list using just one ROW tag |- in a table.
 * Make all the columns of equal width
 * Alternate the colors of the columns with lightblue and lightgray.
 * Use padding of 5px.
 * Place a black line between the columns.

Check your answers

 Quick Quiz
 * To have a list of items in six columns you need to create a table with one row and six cells.
 * A. True
 * B. False


 * A one row table looks better if the columns are of equal length.
 * A. True
 * B. False


 * To make the items on separate lines, you use  tags.
 * A. True
 * B. False

Check your answers