Test Table

Centred Table
Text before table... ...text after table

Color; scope of parameters
==

To make the table blend in with the background, use style="background: none;" or style="background: transparent;". (Warning: style="background: inherit;", does not work with some older browsers, including IE6, so ensure that the table will be intelligible if the coloring preference fails.)

To force a cell to match one of the default colors of the class="wikitable" template, use style="background: #f2f2f2;" for the darker header, and style="background: #f9f9f9;" for the lighter body.

Vertical alignment in cells
By default, text is aligned to the vertical middle of the cell:



To align the text to the top of the cell, apply the style="vertical-align: top;" CSS to the rows (unfortunately, it seems to be necessary to apply this individually to every single row). The valign=... attribute is obsolete and should not be used.

Row Operations
Height, Border and Alignment

Column Operations
Note that wrap-around of text is forced.

To set column widths in a table without headers, specify the width in the first cell for each column.

You can also use percentages, such as to equalize the widths of a two-column table by setting one of them to style="width: 50%;".

One application of setting the widths is aligning columns of consecutive tables. The following are separate tables, with columns set to 350px and 225px. Warning: Setting specific pixel sizes is deprecated, as it interferes with the ability of the browser to adjust content to suit the browser window, device size, user-end font size limits, and other constraints. It is strongly preferred to use relative sizes, in percentage or em values.



Nowrap
In a table that spans the entire width of a page, cells narrower than the widest cell tend to wrap. To keep an entire column from wrapping, use style="white-space: nowrap;" in a non-header cell on the longest/widest cell to affect the entire column.

Tooltips
You can add tooltips to columns by using the template. Simply replace the column-title with Column title, which makes it appear like so: Column title.

Text before centered table... ...text after centered table