Home
Little Joe Ezine
Articles
Books & Literature
Hosting FAQ'S
Share & Help Other
Windows or Linux
Domain Names
1-800
Articles
 

Adding a Background color to a Table.



There are times when changing or adding a background color to a table is necessitated so as to convey a given message to your visitors.

In order to do this all one needs is to identify the appropriate color that will work well and be in harmony with the rest of the page design.

The following html code can then be used to achieve your intended purpose.

<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="3" ALIGN="Center" WIDTH="100%">
<TR>
<TD BGCOLOR="# FFFFFF"><center>FEATURES</center></TD>
<TD BGCOLOR="#00C000"><center>LINUX</center></TD>
<TD BGCOLOR="#FFFF00"><center>WINDOWS</center></TD>
<TR>
<TD WIDTH="40%">
<TD WIDTH="30%">
<TD WIDTH="30%">
</TR>
</TABLE>

You will need to edit the text in bold to reflect the choice of color that you want to use in your web page. You should also edit the table border, Width, Cell padding and Cell spacing and the text inside your table to suite your needs.

Here is exactly how the above code would change the color of a given table.

FEATURES
LINUX
WINDOWS


Close Adding a Background color to a Table window
and return to Html JavaScript examples Homepage


footer for Adding a Background color to a Table page