
This is a legacy document, and retained on the site in order to avoid link rot. The content is likely no longer (a) accurate, (b) representative of the views and philosophies of current site management, or (c) up to date.
CSS Examples
Centered Tables
The example table below was centered with the following rules:
<DIV STYLE="text-align: center"> <TABLE border="2" frame="hsides" rules="groups">
Col 1 | Col 2 | Col 3 |
---|---|---|
First Row, First cell | First Row, Second Cell | First Row, Third Cell |
Second Row, First cell | Second Row, Second Cell | Second Row, Third Cell |
Third Row, First cell | Third Row, Second Cell | Third Row, Third Cell |
The example table below was centered with the following rules: