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

scrollbar-3dLight-color

outer left and top edges of the scrollbar and arrow buttons

scrollbar-arrow-color

direction arrows on the arrow buttons

scrollbar-darkShadow-color

outer right and bottom edges of the scrollbar and arrow buttons

scrollbar-face-color

surface of the scrollbar and arrow buttons

scrollbar-highlight-color

inner left and top edges of the scrollbar and arrow buttons

scrollbar-shadow-color

inner right and bottom edges of the scrollbar and arrow buttons

scrollbar-track-color

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;
}

  

 

 

 

back to top