Click to Rate and Give Feedback
MSDN
MSDN Library
CSSRuleStyleDeclaration Prototype

Defines the properties and methods inherited by objects in the CSSRuleStyleDeclaration prototype chain.

Syntax

HTMLN/A
ScriptingCSSRuleStyleDeclaration.prototype

Members Table

The following table lists the members exposed by the CSSRuleStyleDeclaration Constructor object.

Methods

MethodDescription
getAttribute Retrieves the value of the specified attribute.
removeAttribute Removes an attribute from an object.
setAttribute Sets the value of the specified attribute.

Styles

Style attributeStyle propertyDescription
-ms-acceleratoraccelerator Gets or sets a string that indicates whether the object represents a keyboard shortcut.
backgroundbackground Gets or sets up to five separate background properties of the object.
background-attachmentbackgroundAttachment Gets or sets how the background image is attached to the object within the document.
background-colorbackgroundColor Gets or sets the color behind the content of the object.
background-imagebackgroundImage Gets or sets the background image of the object.
background-origin New for Windows Internet Explorer 9 backgroundOrigin Gets or sets the background positioning area of a box or multiple boxes.
background-positionbackgroundPosition Sets or retrieves the position of the background of the object.
-ms-background-position-xbackgroundPositionX Gets or sets the x-coordinate of the backgroundPosition property.
-ms-background-position-ybackgroundPositionY Gets or sets the y-coordinate of the backgroundPosition property.
background-repeatbackgroundRepeat Gets or sets how the backgroundImage property of the object is tiled.
-ms-behaviorbehavior Gets or sets the location of the Dynamic HTML (DHTML) behavior.
borderborder Sets or retrieves the properties to draw around the object.
border-bottomborderBottom Sets or retrieves the properties of the bottom border of the object.
border-bottom-colorborderBottomColor Gets or sets the color of the bottom border of the object.
border-bottom-styleborderBottomStyle Gets or sets the style of the bottom border of the object.
border-bottom-widthborderBottomWidth Gets or sets the width of the bottom border of the object.
border-collapseborderCollapse Gets or sets a value that indicates whether the row and cell borders of a table are joined in a single border or detached as in standard HTML.
border-colorborderColor Gets or sets the border color of the object.
border-leftborderLeft Sets or retrieves the properties of the left border of the object.
border-left-colorborderLeftColor Gets or sets the color of the left border of the object.
border-left-styleborderLeftStyle Gets or sets the style of the left border of the object.
border-left-widthborderLeftWidth Gets or sets the width of the left border of the object.
border-rightborderRight Sets or retrieves the properties of the right border of the object.
border-right-colorborderRightColor Gets or sets the color of the right border of the object.
border-right-styleborderRightStyle Gets or sets the style of the right border of the object.
border-right-widthborderRightWidth Gets or sets the width of the right border of the object.
border-spacingborderSpacing Gets or sets the distance between the borders of adjoining cells in a table.
border-styleborderStyle Gets or sets the style of the left, right, top, and bottom borders of the object.
border-topborderTop Sets or retrieves the properties of the top border of the object.
border-top-colorborderTopColor Gets or sets the color of the top border of the object.
border-top-styleborderTopStyle Gets or sets the style of the top border of the object.
border-top-widthborderTopWidth Gets or sets the width of the top border of the object.
border-widthborderWidth Gets or sets the width of the left, right, top, and bottom borders of the object.
bottombottom Gets or sets the bottom position of the object in relation to the bottom of the next positioned object in the document hierarchy.
box-sizingboxSizing Gets or sets the box model to use for object sizing.
clearclear Gets or sets whether the object allows floating objects on its left side, right side, or both, so that the next text displays past the floating objects.
clipclip Sets or retrieves which part of a positioned object is visible.
colorcolor Gets or sets the color of the text of the object.
contentcontent Gets or sets generated content to insert before or after an element.
counter-incrementcounterIncrement Gets or sets a list of counters to increment.
counter-resetcounterReset Gets or sets a list of counters to create or reset to zero.
cssText Gets or sets the persisted representation of the style rule.
directiondirection Gets or sets the reading order of the object.
displaydisplay Gets or sets whether the object is rendered.
empty-cellsemptyCells Determines whether to show or hide a cell without content.
-ms-filterfilter Gets or sets the filter or collection of filters that are applied to the object.
fontfont Sets or retrieves a combination of separate font properties of the object. Alternatively, sets or retrieves one or more of six user-preference fonts.
font-familyfontFamily Gets or sets the name of the font used for text in the object.
font-sizefontSize Gets or sets a value that indicates the font size used for text in the object.
font-stylefontStyle Gets or sets the font style of the object as italic, normal, or oblique.
font-variantfontVariant Gets or sets whether the text of the object is in small capital letters.
font-weightfontWeight Gets or sets the weight of the font of the object.
heightheight Gets or sets the height of the object.
-ms-ime-modeimeMode Gets or sets the state of an Input Method Editor (IME).
-ms-layout-flowlayoutFlow Gets or sets the direction and flow of the content in the object.
-ms-layout-gridlayoutGrid Sets or retrieves the composite document grid properties that specify the layout of text characters.
-ms-layout-grid-charlayoutGridChar Gets or sets the size of the character grid used for rendering the text content of an element.
-ms-layout-grid-linelayoutGridLine Gets or sets the gridline value used for rendering the text content of an element.
-ms-layout-grid-modelayoutGridMode Gets or sets whether the text layout grid uses two dimensions.
-ms-layout-grid-typelayoutGridType Gets or sets the type of grid used for rendering the text content of an element.
leftleft Gets or sets the position of the object relative to the left edge of the next positioned object in the document hierarchy.
letter-spacingletterSpacing Gets or sets the amount of additional space between letters in the object.
line-heightlineHeight Gets or sets the distance between lines in the object.
list-stylelistStyle Sets or retrieves up to three separate listStyle properties of the object.
list-style-imagelistStyleImage Gets or sets a value that indicates which image to use as a list-item marker for the object.
list-style-positionlistStylePosition Gets or sets a variable that indicates how the list-item marker is drawn relative to the content of the object.
list-style-typelistStyleType Gets or sets the predefined type of the line-item marker for the object.
marginmargin Gets or sets the width of the top, right, bottom, and left margins of the object.
margin-bottommarginBottom Gets or sets the height of the bottom margin of the object.
margin-leftmarginLeft Gets or sets the width of the left margin of the object.
margin-rightmarginRight Gets or sets the width of the right margin of the object.
margin-topmarginTop Gets or sets the height of the top margin of the object.
max-heightmaxHeight Gets or sets the maximum height for an element.
max-widthmaxWidth Gets or sets the maximum width for an element.
min-heightminHeight Gets or sets the minimum height for an element.
min-widthminWidth Gets or sets the minimum width for an element.
-ms-block-progressionmsBlockProgression Gets or sets the block progression and layout orientation.
-ms-interpolation-modemsInterpolationMode

Obsolete. Gets or sets the interpolation (resampling) method used to stretch images.

orphansorphans Gets or sets the minimum number of lines of a paragraph that must appear at the bottom of a page.
outlineoutline Gets or sets the color, style, and width of the outline frame.
outline-coloroutlineColor Gets or sets the color of the outline frame.
outline-styleoutlineStyle Gets or sets the style of the outline frame.
outline-widthoutlineWidth Gets or sets the width of the outline frame.
overflowoverflow Gets or sets a value indicating how to manage the content of the object when the content exceeds the height or width of the object.
-ms-overflow-xoverflowX Gets or sets how to manage the content of the object when the content exceeds the width of the object.
-ms-overflow-yoverflowY Gets or sets how to manage the content of the object when the content exceeds the height of the object.
paddingpadding Gets or sets the amount of space to insert between the object and its margin or, if there is a border, between the object and its border.
padding-bottompaddingBottom Gets or sets the amount of space to insert between the bottom border of the object and the content.
padding-leftpaddingLeft Gets or sets the amount of space to insert between the left border of the object and the content.
padding-rightpaddingRight Gets or sets the amount of space to insert between the right border of the object and the content.
padding-toppaddingTop Gets or sets the amount of space to insert between the top border of the object and the content.
page-break-afterpageBreakAfter Gets or sets a value indicating whether a page break occurs after the object.
page-break-beforepageBreakBefore Gets or sets a string indicating whether a page break occurs before the object.
page-break-insidepageBreakInside Gets or sets a string indicating whether a page break is allowed to occur inside the object.
pixelBottom Sets or retrieves the bottom position of the object.
pixelRight Sets or retrieves the right position of the object.
posBottom Sets or retrieves the bottom position of the object in the units specified by the bottom attribute.
positionposition Gets or sets the type of positioning used for the object.
posRight Sets or retrieves the right position of the object in the units specified by the right attribute.
quotesquotes Gets or sets the pairs of strings to be used as quotes in generated content.
rightright Gets or sets the position of the object relative to the right edge of the next positioned object in the document hierarchy.
ruby-alignrubyAlign Gets or sets the position of the ruby text specified by the rt object.
ruby-overhangrubyOverhang Gets or sets the position of the ruby text specified by the rt object.
ruby-positionrubyPosition Gets or sets the position of the ruby text specified by the rt object.
-ms-scrollbar-3dlight-colorscrollbar3dLightColor Gets or sets the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.
-ms-scrollbar-arrow-colorscrollbarArrowColor Gets or sets the color of the arrow elements of a scroll arrow.
-ms-scrollbar-base-colorscrollbarBaseColor Gets or sets the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.
-ms-scrollbar-darkshadow-colorscrollbarDarkShadowColor Gets or sets the color of the gutter of a scroll bar.
-ms-scrollbar-face-colorscrollbarFaceColor Gets or sets the color of the scroll box and scroll arrows of a scroll bar.
-ms-scrollbar-highlight-colorscrollbarHighlightColor Gets or sets the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.
-ms-scrollbar-shadow-colorscrollbarShadowColor Gets or sets the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.
-ms-scrollbar-track-colorscrollbarTrackColor Gets or sets the color of the track element of a scroll bar.
floatstyleFloat Gets or sets on which side of the object the text will flow.
table-layouttableLayout Gets or sets a string that indicates whether the table layout is fixed.
text-aligntextAlign Gets or sets whether the text in the object is left-aligned, right-aligned, centered, or justified.
-ms-text-align-lasttextAlignLast Gets or sets how to align the last line or only line of text in the object.
-ms-text-autospacetextAutospace Gets or sets the autospacing and narrow space width adjustment of text.
text-decorationtextDecoration Gets or sets a value that indicates whether the text in the object has blink, line-through, overline, or underline decorations.
textDecorationBlink

Sets or retrieves a Boolean value that indicates whether the object's textDecoration property has a value of "blink."

textDecorationLineThrough Sets or retrieves a Boolean value indicating whether the text in the object has a line drawn through it.
textDecorationNone Sets or retrieves the Boolean value indicating whether the textDecoration property for the object has been set to none.
textDecorationOverline Sets or retrieves a Boolean value indicating whether the text in the object has a line drawn over it.
textDecorationUnderline Sets or retrieves whether the text in the object is underlined.
text-indenttextIndent Gets or sets the indentation of the first line of text in the object.
-ms-text-justifytextJustify Gets or sets the type of alignment used to justify text in the object.
-ms-text-kashida-spacetextKashidaSpace Gets or sets the ratio of kashida expansion to white space expansion when justifying lines of text in the object.
-ms-text-overflowtextOverflow Gets or sets a value that indicates whether to render ellipses(...) to indicate text overflow.
text-transformtextTransform Gets or sets the rendering of the text in the object.
-ms-text-underline-positiontextUnderlinePosition Gets or sets the position of the underline decoration that is set through the textDecoration property of the object.
toptop Gets or sets the position of the object relative to the top of the next positioned object in the document hierarchy.
unicode-bidiunicodeBidi Gets or sets the level of embedding with respect to the bidirectional algorithm.
vertical-alignverticalAlign Gets or sets the vertical alignment of the object.
visibilityvisibility Gets or sets whether the content of the object is displayed.
white-spacewhiteSpace Gets or sets a value that indicates whether lines are automatically broken inside the object.
widowswidows Gets or sets the minimum number of lines of a paragraph that must appear at the top of a document.
widthwidth Gets or sets the width of the object.
-ms-word-breakwordBreak Gets or sets line-breaking behavior within words, particularly where multiple languages appear in the object.
word-spacingwordSpacing Gets or sets the amount of additional space between words in the object.
-ms-word-wrapwordWrap Gets or sets whether to break words when the content exceeds the boundaries of its container.
-ms-writing-modewritingMode Gets or sets the direction and flow of the content in the object.
z-indexzIndex Gets or sets the stacking order of positioned objects.
-ms-zoomzoom Gets or sets the magnification scale of the object.

Remarks

For more information on this and other DOM Prototypes see Document Object Model Prototypes, Part 1: Introduction.

This prototype does not derive from any objects.

Applies To

attribute

See Also

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