Name
BORDERCOLORDARK, BORDERCOLORLIGHT — NN n/a IE 3 HTML n/a
Synopsis
BORDERCOLORDARK=”colorTripletOrName"
BORDERCOLORLIGHT=”colorTripletOrName"
Optional
The 3-D effect of table borders in Internet Explorer is created by
careful positioning of light and dark lines around the page’s
background or default color (see Figure 8.4 in the
TABLE
element discussion). You can independently
control the colors used for the dark and light lines by assigning
values to the BORDERCOLORDARK
(left and top edges
of the cell) and BORDERCOLORLIGHT
(right and
bottom edges) attributes.
Typically, you should assign complementary colors to the pair of
attributes. There is also no rule that says you must assign a dark
color to BORDERCOLORDARK
. The attributes merely
control a well-defined set of lines so you can predict which lines of
the border change with each attribute.
Example
<TR BORDERCOLORDARK="darkred" BORDERCOLORLIGHT="salmon">
Value
A hexadecimal triplet or plain-language color name. A setting of
empty is interpreted as "#000000"
(black). See
Appendix A for acceptable plain-language color names.
Default
Varies with operating system.
Object Model Reference
- IE
[window.]document.all.elementID.borderColorDark
[window.]document.all.elementID.borderColorLight
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.