You are here: HTML > Tables > Table Border Colors
Table Borders: All Three Border Color Attributes At Once
Netscape and MSIE both recognize BORDERCOLOR, but
currently only MSIE recognizes
BORDERCOLORLIGHT and
BORDERCOLORDARK. However, you can use all three at once because MSIE ignores BORDERCOLORLIGHT and
BORDERCOLORDARK if it finds BORDERCOLOR. You can use this feature to get a little more control over the border colors than if you use just one or two of those attributes.
For example, this code says that the overall border color is blue, but also specifies that the light portion is a light blue and the dark portion is regular blue:
<TABLE border="1" bordercolor="#CBD3E1" bgcolor="#F1F4F5"
BORDERCOLOR="#0000FF"
BORDERCOLORLIGHT="#33CCFF" BORDERCOLORDARK="#0000CC">
<TR> <TD>bordercolor</TD> <TD>bordercolorlight</TD> </TR>
<TR> <TD>bordercolordark</TD> <TD>bordercolor again</TD> </TR>
</TABLE>
which gives us this table
| bordercolor | bordercolorlight |
| bordercolordark | bordercolor again |
Table Background Colors and Images >>>
|