Adding Color To Your Table Borders
by sabitha[ Edit ] 2010-09-17 18:40:10
If you're using HTML tables within your web page
and would like to add a color border, this HTML code will assist you.
In this example, the table below contains 1 column and 1 row. The background color is set to #EAE8E8 and the border color is set to #C6C6C6.
This is an example
of an HTML table with a color border and background. |
This is an example of an HTML
table with the standard border. |
<TABLE BORDER="2" BORDERCOLOR="#C6C6C6" CELLPADDING="4" ALIGN="Center" WIDTH="50%">
<TR>
<TD BGCOLOR="#EAE8E8">Your Text</TD>
</TR>
</TABLE>