Adding Color To Your Table Borders

by Geethalakshmi 2010-09-16 22:44:20

Adding Color To Your Table Borders


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>


Edit the text indicated in bold to suit your needs.

Using a color border and background with your HTML web page tables looks much more professional than simply using the standard HTML table borders and backgrounds. Give it a try, you will most likely be very pleased with the new look.

Tagged in:

610
like
0
dislike
0
mail
flag

You must LOGIN to add comments