CalHTMLPane v2.0 Guide | Example Tag Usage |
1: Tables
Attr: bgcolor
Use Within:
<TABLE> <THEAD>, <TBODY>, <TFOOT>, <TR>, <COLGROUP>, <COL>, <TH>, and <TD>Arguments: A hexidecimal color code or default color name.
(e.g. bgcolor=4488AA, bgcolor=silver)Synopsis:
Sets the background color of a table, table row, table cell etc.When used within the <TABLE> tag, Netscape Navigator applies the specified color only to the <TD/TH> elements within the table - any border areas produced with the cellspacing attribute remain in the background color of the table's parent (either the document itself or perhaps a parent <TD/TH> element). Internet Explorer however renders all of the table in the specified background color.
The CalPane follows Explorer in this respect, except the Pane uses computed colors for any highlight and shadow lines in the table.
Example:
<TABLE border=1 cellspacing=3 cellpadding=2 bgcolor=mediumaquamarine>
<TR><TD> Background Test </TD></TR>
</TABLE>
Rendering:
Navigator Explorer CalPane
Background test
Background test
Background test Implementation Notes:
- Some document authors who do not test their pages across multiple browsers assume all table rendering is identical to Navigator. They therefore often remove the border from a table similar to the one above in order to get 'empty space' around the TD element. They then proceed to align text and images alongside the table, not realising that when such markup is viewed on a browser such as Explorer no such 'empty space' exists. This leaves the text and images completely flush to the table making the document seem poorly formatted.
Guide Index | JavaDoc | Previous | Next |