Setting your Table's Fonts


The Code:

Add the following Code the the <HEAD> of your document

<STYLE TYPE="text/css">
<!--
.mytable, .mydtable TD, .mytable TH
{
font-family:sans-serif;
font-size:12pt;
color:peru;
background-color:burlywood;
}
-->
</STYLE>

</HEAD>

Add the following (in green) to your TABLE

<TABLE BORDER="2" CELLPADDING="5" CLASS="mytable" ALIGN="center" WIDTH="80%">
    <TR> <TH>City</TH> <TH>County</TH> <TH>Region</TH> </TR>
    <TR> <TD>Fort Worth</TD> <TD>Tarrant</TD> <TD>Metroplex</TD> </TR>
    <TR> <TD>Waco</TD> <TD>McLennan</TD> <TD>CenTex</TD> </TR>
    <TR> <TD>Austin</TD> <TD>Travis</TD> <TD>Hill Country</TD> </TR>
</TABLE>

Example:

Below is a Table with fonts set using a style sheet

City County Region
Fort Worth Tarrant Metroplex
Waco McLennan CenTex
Austin Travis Hill Country