HTML and CSS Reference
In-Depth Information
CSS
Version
Property
Example
No Spec
scrollbar-base-color
#scroll3 {scrollbar-base-color:
orange;}
scrollbar-darkshadow-color
#scroll4 {scrollbar-darkshadow-color:
#FF0000;}
No Spec
scrollbar-face-color
#scroll5 {scrollbar-face-color:
green;}
No Spec
scrollbar-highlight-color
#scroll6 {scrollbar-highlight-color:
blue;}
No Spec
scrollbar-shadow-color
#scroll7 {scrollbar-shadow-color:
yellow;}
No Spec
No Spec
scrollbar-track-color
#scroll8{scrollbar-track-color:
orange;}
text-shadow
.redBlur {text-shadow: 3px 3px 5px
red;}
CSS 3+
T ABLE C-6 CSS Properties Supporting Color Values (continued)
Browser-Safe Colors
Early on in the days of 256-color reproduction across browsers and operating systems, a
special palette of only 216 colors that are “safe” was defined. This group of Web-safe colors
is often called the browser-safe palette. In theory, use of other colors beyond this safe set can
lead to color shifting, particularly under limited color conditions like VGA, which supports
8-bit colors, providing a mere 256 colors. The reality today is that the Web-safe palette is
more historical than worrisome, especially considering how few devices are limited to an
8-bit palette. However, many tools and designers continue to promote the use of this
palette, so we present it and its design for completeness. 1
N OTE Because it is difficult to present the Web-safe colors visually in a black and white book, the
palette can be viewed online at www.htmlref.com/AppC/browserpalette.html.
The selection of the 216 safe colors is fairly understandable if you consider the additive
nature of RGB color. Consider a color to be made up of varying amounts of red, green, or
blue that could be set by adjusting an imaginary color dial from the extremes of no color to
1 The irrelevance of the Web-safe palette has been discussed since late 2000; see www.morecrayons.com for
references on this topic.
 
Search WWH ::




Custom Search