0 out of 2 rated this helpful - Rate this topic

-ms-scrollbar-track-color Attribute | scrollbarTrackColor Property

Gets or sets the color of the track element of a scroll bar.

Syntax

CSS { -ms-scrollbar-track-color : vColor }
Scripting [ vColor = ] object.style.scrollbarTrackColor

Possible Values

vColor Variant that specifies or receives any color name or RGB values in the Color Table.

The property is read/write for all objects except the following, for which it is read-only: currentStyle. The property has no default value. The Microsoft Cascading Style Sheets (CSS) extension is inherited.

DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are supported in IE7 Standards mode and IE5 (Quirks) mode only. For more information, see About Dynamic Properties and Defining Document Compatibility.

Remarks

Windows Internet Explorer 8. The -ms-scrollbar-track-color attribute is an extension to CSS, and can be used as a synonym for scrollbar-track-color in IE8 Standards mode.

The track is the element of a scroll bar on which the scroll box can slide either up and down or left and right. The scroll box is the square box within a scroll bar that can be moved either up and down or left and right on a track to change the position of the content on the screen.

This property applies to elements that display a scroll bar. Cascading Style Sheets (CSS) enable scrolling on all objects through the overflow property. These objects are not listed in the Applies To list for this property.

Example

The following example shows how to create a style rule that sets the scrollbarTrackColor property for a textArea element.


<HTML>
  <HEAD>
    <STYLE>
      TEXTAREA.BlueTrack  { scrollbar-track-color:blue }
    </STYLE>
  </HEAD>  
  <BODY>
    <TEXTAREA CLASS="BlueTrack">The track element in the scroll bar for this 
      element will be blue.</TEXTAREA>
  </BODY>
</HTML>

Standards Information

There is no public standard that applies to this property.

Applies To

APPLET, BDO, BODY, CSSStyleDeclaration, currentStyle, CUSTOM, defaults, DIV, EMBED, OBJECT, runtimeStyle, style, TEXTAREA, CSSCurrentStyleDeclaration Constructor, CSSRuleStyleDeclaration Constructor, CSSStyleDeclaration Constructor

See Also

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ