Search results
Results from the WOW.Com Content Network
See the Width section of Help:Table.To summarize, max-width is the preferred way to limit widths on tables. It works on divs too. Note though that in both tables and divs there needs to be spaces in long lines of text or wikitext.
For years in HTML, a table has always forced an implicit line-wrap (or line-break). So, to keep a table within a line, the workaround is to put the whole line into a table, then embed a table within a table, using the outer table to force the whole line to stay together. Consider the following examples: Wikicode (showing table forces line-break)
Align all table cells left by default defaultcenter: Align all table cells center by default defaultright: Align all table cells right by default colNleft: Align the cells in column N left, where N is a number colNcenter: Align the cells in column N center, where N is a number colNright: Align the cells in column N right, where N is a number
To force initial column widths to specific requirements, rather than accepting the width of the widest text element in a column's cells, follow this example. Note that wrap-around of text is forced for columns where the width requires it. Do not use min-width:Xpx;
The two most commonly used classes are "wikitable" and "wikitable sortable"; the latter allows the reader to sort the table by clicking on the header cell of any column. |+ caption Required for accessibility purposes on data tables, and placed only between the table start and the first table row. ! header cell Optional.
The caption tag is used inside the HTML element "table". This can also be done indirectly using the code "|+" as part of the wikicode for a table. Captions are placed above the table by default. Captions can also be placed below, to the left, or to the right of the table, based on the value of the "align" parameter.
Get AOL Mail for FREE! Manage your email like never before with travel, photo & document views. Personalize your inbox with themes & tabs. You've Got Mail!
Click each column header a couple times in the tables below to see. Note the column headed data-sort-type=isoDate may sort correctly in some browsers, but it is not reliable. Year and month in numerical form (YYYY-MM) works with data-sort-type=isoDate (see relevant section farther down).