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=10 
BORDERCOLOR="#0000FF"
BORDERCOLORLIGHT="#33CCFF" BORDERCOLORDARK="#0000CC">
<TR> <TD>blah blah blah</TD>     <TD>yeah yeah yeah</TD> </TR>
<TR> <TD>whatever whatever</TD>  <TD>right on!</TD> </TR>
</TABLE>

which gives us this table

blah blah blah yeah yeah yeah
whatever whatever right on!





About the Author
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.