XML technologies / CSS / Advanced websites with CSS / CSS property reference / scrollbar-base-color

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

The property scrollbar-base-color is not included in the CSS specification and describes the scrollbar colour in an element. The browser uses the declared colour as a starting point for determining the colours of all scrollbar components.

The colours of individual scrollbar components can also be set separately using the property scrollbar-element-color.

Inherited: yes

See also: scrollbar-element-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 sets the scrollbars in the element textarea to blue:

textarea {
 scrollbar-base-color: blue;
}

  

 

 

 

back to top