Template:AltTable

table.altrow, table.altcol { margin: 1em 1em 1em 0; background: #17456e; border: 1px solid #426787; border-collapse: collapse; }

table.altrow td, table.altcol td { border: 1px solid #426787; padding: 0.2em; }

table.altrow tr:nth-child(even) { background: #17456e; }

table.altrow tr:nth-child(odd) { background: #163d5f; }

table.altcol td:nth-child(even) { background: #17456e; }

table.altcol td:nth-child(odd) { background: #163d5f; }

table.altrow th, table.altcol th { background: #1d578b; border: 1px solid #426787; text-align: center; padding: 0.2em; }

table.altrow caption, table.altcol caption { margin-left: inherit; margin-right: inherit; font-weight: bold; }

table.altrow code, table.altcol code { background-color: transparent; }

Usage
This template allows for the creation of tables with alternating row or column color. To use it, add the following to any part of the page (preferably the top):

Then add  or   after opening a table.

Note:
 * This only works on browsers that support CSS3. For those that do not, it displays a table with the regular "wikitable" style.
 * The template is only required once per page
 * The coloring may mess up on complex tables that involve "rowspan" and "colspan"