Attribute for <TABLE ...>
BGCOLOR = color expression
<TABLE ...>BGCOLOR
| this code | produces this | ||||
<TABLE BGCOLOR=YELLOW> <TR> <TD>lemons</TD> <TD>grapefruit</TD> </TR> <TR> <TD>bananas</TD> <TD>pineapple</TD> </TR> </TABLE> |
|
You can also set the background colors of rows with
<TR BGCOLOR="..."><TD BGCOLOR="...">
Netscape and MSIE have different ways of displaying the background color. MSIE fills the entire table with the background color. Netscape only fills the cells, but not the spaces between the cells, resulting in an annoying block of individual colored cells:
| MSIE | |
|---|---|
| Netscape |
| this code | produces this | |||||
<TABLE BGCOLOR="#CCCC99"><TR><TD> <TABLE> <TR> <TD>lemons</TD> <TD>grapefruit</TD> </TR> <TR> <TD>bananas</TD> <TD>pineapple</TD> </TR> </TABLE> </TD></TR></TABLE> |
|
Copyright 1997-2002 Idocs Inc.
