Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
Objects
 runtimeStyle Object
runtimeStyle Object

Represents the cascaded format and style of the object that overrides the format and style specified in global style sheets, inline styles, and HTML attributes.

Members Table

The following table lists the members exposed by the runtimeStyle object.

Attributes/Properties
Show:
AttributePropertyDescription
 New for Windows Internet Explorer 8 msBlockProgression Sets or retrieves the block progression and layout orientation.
-ms-box-sizing New for Internet Explorer 8 msBoxSizing Sets or retrieves the box model to use for object sizing.
onOffBehavior Gets an object that indicates whether the specified Microsoft DirectAnimation behavior is running.
quotes New for Internet Explorer 8 quotes Sets or retrieves the pairs of strings to be used as quotes in generated content.
Filter propertyDescription
Alpha Adjusts the opacity of the content of the object.
BlendTrans Reveals new content of the object by fading the original content.
Chroma Displays a specific color of the content of the object as transparent.
DropShadow Creates a solid silhouette of the content of the object, offset in the specified direction. This creates the illusion that the content is floating and casting a shadow.
FlipH Displays the content of the object flipped across the horizontal axis.
FlipV Displays the content of the object flipped across the vertical axis.
Glow Adds radiance around the outside edges of the content of the object so that it appears to glow.
Gray Displays the content of the object in grayscale.
Invert Reverses the hue, saturation, and brightness values of the content of the object.
Light Creates the effect of a light shining on the content of the object.
MaskFilter Displays transparent pixels of the object content as a color mask, and makes the nontransparent pixels transparent.
MotionBlur Causes the content of the object to appear to be in motion.
Redirect Not currently supported.
RevealTrans Reveals new content of the object using one of 24 predefined Transition effects.
Shadow Creates a solid silhouette of the content of the object, offset in the specified direction. This creates the illusion of a shadow.
Wave Performs a sine wave distortion of the content of the object along the vertical axis.
Xray Changes the color depth of the content of the object and displays it in black and white.
MethodDescription
getAttribute Retrieves the value of the specified attribute.
getExpression Retrieves the expression for the given property.
removeAttribute Removes the given attribute from the object.
removeExpression Removes the expression from the specified property.
setAttribute Sets the value of the specified attribute.
setExpression Sets an expression for the specified object.
Style attributeStyle propertyDescription
ACCELERATORaccelerator Sets or retrieves a string that indicates whether the object contains an accelerator key.
backgroundbackground Sets or retrieves up to five separate background properties of the object.
background-attachmentbackgroundAttachment Sets or retrieves how the background image is attached to the object within the document.
background-colorbackgroundColor Sets or retrieves the color behind the content of the object.
background-imagebackgroundImage Sets or retrieves the background image of the object.
background-positionbackgroundPosition Sets or retrieves the position of the background of the object.
background-position-xbackgroundPositionX Sets or retrieves the x-coordinate of the backgroundPosition property.
background-position-ybackgroundPositionY Sets or retrieves the y-coordinate of the backgroundPosition property.
background-repeatbackgroundRepeat Sets or retrieves how the backgroundImage property of the object is tiled.
behaviorbehavior Sets or retrieves 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 Sets or retrieves the color of the bottom border of the object.
border-bottom-styleborderBottomStyle Sets or retrieves the style of the bottom border of the object.
border-bottom-widthborderBottomWidth Sets or retrieves the width of the bottom border of the object.
border-collapseborderCollapse Sets or retrieves 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 Sets or retrieves the border color of the object.
border-leftborderLeft Sets or retrieves the properties of the left border of the object.
border-left-colorborderLeftColor Sets or retrieves the color of the left border of the object.
border-left-styleborderLeftStyle Sets or retrieves the style of the left border of the object.
border-left-widthborderLeftWidth Sets or retrieves 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 Sets or retrieves the color of the right border of the object.
border-right-styleborderRightStyle Sets or retrieves the style of the right border of the object.
border-right-widthborderRightWidth Sets or retrieves the width of the right border of the object.
border-spacing New for Internet Explorer 8 borderSpacing Sets or retrieves the distance between the borders of adjoining cells in a table.
border-styleborderStyle Sets or retrieves 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 Sets or retrieves the color of the top border of the object.
border-top-styleborderTopStyle Sets or retrieves the style of the top border of the object.
border-top-widthborderTopWidth Sets or retrieves the width of the top border of the object.
border-widthborderWidth Sets or retrieves the width of the left, right, top, and bottom borders of the object.
bottombottom Sets or retrieves the bottom position of the object in relation to the bottom of the next positioned object in the document hierarchy.
caption-side New for Internet Explorer 8 captionSide Sets or retrieves where the caption of a table is located.
clearclear Sets or retrieves 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 Sets or retrieves the color of the text of the object.
content New for Internet Explorer 8 content Sets or retrieves generated content to insert before or after an element.
counter-increment New for Internet Explorer 8 counterIncrement Sets or retrieves a list of counters to increment.
counter-reset New for Internet Explorer 8 counterReset Sets or retrieves a list of counters to create or reset to zero.
cssText Sets or retrieves the persisted representation of the style rule.
cursorcursor Sets or retrieves the type of cursor to display as the mouse pointer moves over the object.
directiondirection Sets or retrieves the reading order of the object.
emptyCells New for Internet Explorer 8 emptyCellsDetermines whether to show or hide a cell without content.
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 Sets or retrieves the name of the font used for text in the object.
font-sizefontSize Sets or retrieves a value that indicates the font size used for text in the object.
font-stylefontStyle Sets or retrieves the font style of the object as italic, normal, or oblique.
font-variantfontVariant Sets or retrieves whether the text of the object is in small capital letters.
font-weightfontWeight Sets or retrieves the weight of the font of the object.
heightheight Sets or retrieves the height of the object.
ime-modeimeMode Sets or retrieves the state of an Input Method Editor (IME).
layout-flowlayoutFlow Sets or retrieves the direction and flow of the content in the object.
layout-gridlayoutGrid Sets or retrieves the composite document grid properties that specify the layout of text characters.
layout-grid-charlayoutGridChar Sets or retrieves the size of the character grid used for rendering the text content of an element.
layout-grid-linelayoutGridLine Sets or retrieves the gridline value used for rendering the text content of an element.
layout-grid-modelayoutGridMode Sets or retrieves whether the text layout grid uses two dimensions.
layout-grid-typelayoutGridType Sets or retrieves the type of grid used for rendering the text content of an element.
leftleft Sets or retrieves the position of the object relative to the left edge of the next positioned object in the document hierarchy.
letter-spacingletterSpacing Sets or retrieves the amount of additional space between letters in the object.
line-breaklineBreak Sets or retrieves line-breaking rules for text in selected languages such as Japanese, Chinese and Korean.
line-heightlineHeight Sets or retrieves the distance between lines in the object.
list-stylelistStyle Sets or retrieves up to three separate listStyle properties of the object.
list-style-imagelistStyleImage Sets or retrieves a value that indicates which image to use as a list-item marker for the object.
list-style-positionlistStylePosition Sets or retrieves a variable that indicates how the list-item marker is drawn relative to the content of the object.
list-style-typelistStyleType Sets or retrieves the predefined type of the line-item marker for the object.
marginmargin Sets or retrieves the width of the top, right, bottom, and left margins of the object.
margin-bottommarginBottom Sets or retrieves the height of the bottom margin of the object.
margin-leftmarginLeft Sets or retrieves the width of the left margin of the object.
margin-rightmarginRight Sets or retrieves the width of the right margin of the object.
margin-topmarginTop Sets or retrieves the height of the top margin of the object.
max-heightmaxHeight Sets or retrieves the maximum height for an element.
max-widthmaxWidth Sets or retrieves the maximum width for an element.
min-heightminHeight Sets or retrieves the minimum height for an element.
min-widthminWidth Sets or retrieves the minimum width for an element.
-ms-interpolation-modemsInterpolationMode Sets or retrieves the interpolation (resampling) method used to stretch images.
orphans New for Internet Explorer 8 orphans Sets or retrieves the minimum number of lines of a paragraph that must appear at the bottom of a page.
outline New for Internet Explorer 8 outline Sets or retrieves the color, style, and width of the outline frame.
outline-color New for Internet Explorer 8 outlineColor Sets or retrieves the color of the outline frame.
outline-style New for Internet Explorer 8 outlineStyle Sets or retrieves the style of the outline frame.
outline-width New for Internet Explorer 8 outlineWidth Sets or retrieves the width of the outline frame.
overflowoverflow Sets or retrieves a value indicating how to manage the content of the object when the content exceeds the height or width of the object.
overflow-xoverflowX Sets or retrieves how to manage the content of the object when the content exceeds the width of the object.
overflow-yoverflowY Sets or retrieves how to manage the content of the object when the content exceeds the height of the object.
padding