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). You can independently
control the colors used for the dark and light lines by assigning
values to the BORDERCOLORDARK
and
BORDERCOLORLIGHT
attributes. The
BORDER
attribute must have a nonzero value
assigned for the colors to appear.
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
<TABLE BORDERCOLORDARK="darkred" BORDERCOLORLIGHT="salmon" BORDER=3>... </TABLE>
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.