XML technologies / CSS / Advanced websites with CSS / CSS property reference / scrollbar-element-color
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
This group of properties is not part of the CSS specification and describes the colours of scrollbar components. The following table lists the individual property names and the components they affect.
Table: Scrollbar properties (Internet Explorer 5.5 and later only).
Property | Affected scrollbar components |
|---|---|
| outer left and top edges of the scrollbar and arrow buttons |
| direction arrows on the arrow buttons |
| outer right and bottom edges of the scrollbar and arrow buttons |
| surface of the scrollbar and arrow buttons |
| inner left and top edges of the scrollbar and arrow buttons |
| inner right and bottom edges of the scrollbar and arrow buttons |
| scrollbar background area |
Inherited: yes
See also: scrollbar-base-color
Values
Any valid CSS colour value (see CSS colour reference).
Default value: depends on the user’s browser settings
Compatibility
CSS version: not part of the CSS specification
Works only in Internet Explorer for Windows from version 5.5; not supported in Internet Explorer 6’s “Standards-Compliant Mode”.
Example
The following rule removes the scrollbar’s 3D appearance in the element textarea and displays it in black and white:
textarea {
scrollbar-3dLight-color: black;
scrollbar-arrow-color: black;
scrollbar-darkShadow-color: black;
scrollbar-face-color: white;
scrollbar-highlight-color: white;
scrollbar-shadow-color: white;
scrollbar-track-color: black;
}
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg