☰ Click for Table of Contents
BookWiki Documentation
Copyright 2026
Rance D. Necaise

Tabular Styles

The default style of a tabular results in a classic table in black and white with spaced borders and the header cells in boldface. This style can be changed by modifying the tabular CSS values or by specifying predefined css classes from among a variety of styles.

Column 1Column 2Column 3
ABC
DEF
GHI
JKL
MNP

Predefined Styles

The following styles are defined for a tabular and all types of tables:

ValueDescription
simpleCollapse the double borders into single rules.
smallReduce the font size of the cells by 90%.
tinyReduce the font size of the cells by 80%.

The following styles are defined for tabulars:

ValueDescription
spacedOmit borders and adding spacing between the cells.
framedAdd a 1px border around the entire table.
halfframedAdd a 1px border on the bottom and the top of the table.
ruledUse single ruled borders around the cells.
dblruledUse double ruled borders around the cells.
zebraCreate zebra stripes with light gray stripes.
tan-zebraCreate light tan zebra stripes.
nozebraRemove zebra stripes for tables with stripes.
whitebarAdd white rules to the header.

Single Ruled

The spaced borders can be changed to single ruled

Example
source
  1. \begin{tabular}[ncols=3 style=ruled]
  2.  \headers{Column 1}{Column 2}{Column 3}
  3.  \row{A}{B}{C}
  4.  \row{D}{E}{F}
  5.  \row{G}{H}{I}
  6.  \row{J}{K}{L}
  7.  \row{M}{N}{P}
  8. \end{tabular}
Column 1Column 2Column 3
ABC
DEF
GHI
JKL
MNP
results

Double Ruled

Use double ruled black borders

Example
source
  1. \begin{tabular}[ncols=3 style=dblruled]
  2.  \headers{Column 1}{Column 2}{Column 3}
  3.  \row{A}{B}{C}
  4.  \row{D}{E}{F}
  5.  \row{G}{H}{I}
  6.  \row{J}{K}{L}
  7.  \row{M}{N}{P}
  8. \end{tabular}
Column 1Column 2Column 3
ABC
DEF
GHI
JKL
MNP
results

Zebra Stripes

To create the more stylish zebra stripes with gray stripes

Example
source
  1. \begin{tabular}[ncols=3 style=zebra]
  2.  \headers{Column 1}{Column 2}{Column 3}
  3.  \row{A}{B}{C}
  4.  \row{D}{E}{F}
  5.  \row{G}{H}{I}
  6.  \row{J}{K}{L}
  7.  \row{M}{N}{P}
  8. \end{tabular}
Column 1Column 2Column 3
ABC
DEF
GHI
JKL
MNP
results

To create tan stripes instead of gray

Example
source
  1. \begin{tabular}[ncols=3 style=tan-zebra]
  2.  \headers{Column 1}{Column 2}{Column 3}
  3.  \row{A}{B}{C}
  4.  \row{D}{E}{F}
  5.  \row{G}{H}{I}
  6.  \row{J}{K}{L}
  7.  \row{M}{N}{P}
  8. \end{tabular}
Column 1Column 2Column 3
ABC
DEF
GHI
JKL
MNP
results

For tables that have zebra stripes by default, you can turn off the stripes using

Example
source
  1. \begin{tabular}[ncols=3 style=nozebra]
  2.  \headers{Column 1}{Column 2}{Column 3}
  3.  \row{A}{B}{C}
  4.  \row{D}{E}{F}
  5.  \row{G}{H}{I}
  6.  \row{J}{K}{L}
  7.  \row{M}{N}{P}
  8. \end{tabular}
Column 1Column 2Column 3
ABC
DEF
GHI
JKL
MNP
results

Framed Tables

There are two styles available for framed tables

Example
source
  1. \begin{tabular}[ncols=3 style='ruled zebra framed']
  2.  \headers{Column 1}{Column 2}{Column 3}
  3.  \row{A}{B}{C}
  4.  \row{D}{E}{F}
  5.  \row{G}{H}{I}
  6.  \row{J}{K}{L}
  7.  \row{M}{N}{P}
  8. \end{tabular}
Column 1Column 2Column 3
ABC
DEF
GHI
JKL
MNP
results
Example
source
  1. \begin{tabular}[ncols=3 style='ruled tan-zebra halfframed']
  2.  \headers{Column 1}{Column 2}{Column 3}
  3.  \row{A}{B}{C}
  4.  \row{D}{E}{F}
  5.  \row{G}{H}{I}
  6.  \row{J}{K}{L}
  7.  \row{M}{N}{P}
  8. \end{tabular}
Column 1Column 2Column 3
ABC
DEF
GHI
JKL
MNP
results

Changing Font Sizes

Two styles are available for changing the font size used for the content of the table cells.

Example
source
  1. \begin{tabular}[ncols=3 style='ruled tan-zebra small']
  2.  \headers{Column 1}{Column 2}{Column 3}
  3.  \row{A}{B}{C}
  4.  \row{D}{E}{F}
  5.  \row{G}{H}{I}
  6.  \row{J}{K}{L}
  7.  \row{M}{N}{P}
  8. \end{tabular}
Column 1Column 2Column 3
ABC
DEF
GHI
JKL
MNP
results
Example
source
  1. \begin{tabular}[ncols=3 style='ruled tan-zebra tiny']
  2.  \headers{Column 1}{Column 2}{Column 3}
  3.  \row{A}{B}{C}
  4.  \row{D}{E}{F}
  5.  \row{G}{H}{I}
  6.  \row{J}{K}{L}
  7.  \row{M}{N}{P}
  8. \end{tabular}
Column 1Column 2Column 3
ABC
DEF
GHI
JKL
MNP
results
  August 17, 2026 at 11:19 AM