Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
CSS Reference
Attributes
User Interface
 scrollbarFaceColor Property
-ms-scrollbar-face-color Attribute | scrollbarFaceColor Property

Sets or retrieves the color of the scroll box and scroll arrows of a scroll bar.

Syntax

HTML { -ms-scrollbar-face-color : vColor }
Scripting[ vColor = ] object.style.scrollbarFaceColor

Possible Values

vColorVariant 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 not supported in IE8 mode. For more information, see About Dynamic Properties.

Remarks

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

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. The scroll arrows, located at each end of a scroll bar, are the square buttons containing the arrows that move the content on the screen in small increments, either up and down or left and right.

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 scrollbarFaceColor property for a textArea element.

<HTML>
  <HEAD>
    <STYLE>
        TEXTAREA.BlueFace  { scrollbar-face-color:blue }
    </STYLE>
  </HEAD>
  <BODY>
    <TEXTAREA CLASS="BlueFace">The thumb and button-face elements in the scroll bar for 
    this element will be blue.</TEXTAREA>
  </BODY>
</HTML>
This feature requires Microsoft Internet Explorer 5.5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

This property is a Microsoft extension to CSS World Wide Web link.

Applies To

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

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker