-ms-scrollbar-base-color
Property of css/propertiescss/properties
Syntax
var result = element.-ms-scrollbar-base-color;
element.-ms-scrollbar-base-color = value;
Examples
The following example shows how to create a style rule that sets the -ms-scrollbar-base-color property for a textArea element.
<HTML>
<HEAD>
<STYLE>
TEXTAREA.BlueScrollbar { scrollbar-base-color:blue }
</STYLE>
</HEAD>
<BODY>
<TEXTAREA CLASS="BlueScrollbar">The scroll bar for
this element will be blue.</TEXTAREA>
</BODY>
</HTML>
The following style rule uses the -ms-scrollbar-base-color attribute as part of a coordinated color theme. Earth tones are specified for all the elements defined in the style rule.
<STYLE>
BODY { scrollbar-base-color:darkolivegreen; background-color:tan }
H1 { color:bisque }
P { color:darkslategray }
</STYLE>
Notes
Remarks
Windows Internet Explorer 8. The -ms-scrollbar-base-color attribute is an extension to CSS, and can be used as a synonym for scrollbar-base-color in IE8 Standards 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. The -ms-scrollbar-base-color property is a composite property. You can use separate properties to specify each of the individual properties, but in many cases it is more convenient to set them in one place using this composite property.
Syntax
-ms-scrollbar-base-color: variant
Standards information
There are no standards that apply here.
See also
Related articles
Scrollbar
-ms-scrollbar-base-color
Related pages
- currentStylecurrentStyle
- defaultSelecteddefaultSelected
- runtimeStyleruntimeStyle
- stylestyle
Reference
- -ms-scrollbar-3dlight-color-ms-scrollbar-3dlight-color
- -ms-scrollbar-arrow-color-ms-scrollbar-arrow-color
- -ms-scrollbar-darkshadow-color-ms-scrollbar-darkshadow-color
- -ms-scrollbar-face-color-ms-scrollbar-face-color
- -ms-scrollbar-highlight-color-ms-scrollbar-highlight-color
- -ms-scrollbar-shadow-color-ms-scrollbar-shadow-color
- -ms-scrollbar-track-color-ms-scrollbar-track-color
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]