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

Represents the cascaded format and style of the object as specified by global style sheets, inline styles, and HTML attributes.

Members Table

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

Attributes/Properties
Show:
AttributePropertyDescription
blockDirection Gets a string value that indicates whether the content in the block element flows from left to right, or from right to left.
box-sizing New for Windows Internet Explorer 8 boxSizing Retrieves the box model to use for object sizing.
clipBottom Gets the bottom coordinate of the object clipping region.
constructor New for Internet Explorer 8  Returns a references to the constructor of an object.
 New for Internet Explorer 8 msBlockProgression Retrieves the block progression and layout orientation.
onOffBehavior Gets an object that indicates whether the specified Microsoft DirectAnimation behavior is running.
quotes New for Internet Explorer 8 quotes Retrieves the pairs of strings to be used as quotes in generated content.
MethodDescription
getAttribute Retrieves the value of the specified attribute.
getExpression Retrieves the expression for the given property.
setAttribute Sets the value of the specified attribute.
setExpression Sets an expression for the specified object.
Style attributeStyle propertyDescription
ACCELERATORaccelerator Retrieves a string that indicates whether the object contains an accelerator key.
background-attachmentbackgroundAttachment Retrieves how the background image is attached to the object within the document.
background-colorbackgroundColor Retrieves the color behind the content of the object.
background-imagebackgroundImage Retrieves the background image of the object.
background-position-xbackgroundPositionX Retrieves the x-coordinate of the backgroundPosition property.
background-position-ybackgroundPositionY Retrieves the y-coordinate of the backgroundPosition property.
background-repeatbackgroundRepeat Retrieves how the backgroundImage property of the object is tiled.
behaviorbehavior Retrieves the location of the Dynamic HTML (DHTML) behavior.
border-bottom-colorborderBottomColor Retrieves the color of the bottom border of the object.
border-bottom-styleborderBottomStyle Retrieves the style of the bottom border of the object.
border-bottom-widthborderBottomWidth Retrieves the width of the bottom border of the object.
border-collapseborderCollapse 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 Retrieves the border color of the object.
border-left-colorborderLeftColor Retrieves the color of the left border of the object.
border-left-styleborderLeftStyle Retrieves the style of the left border of the object.
border-left-widthborderLeftWidth Retrieves the width of the left border of the object.
border-right-colorborderRightColor Retrieves the color of the right border of the object.
border-right-styleborderRightStyle Retrieves the style of the right border of the object.
border-right-widthborderRightWidth Retrieves the width of the right border of the object.
border-spacing New for Internet Explorer 8 borderSpacing Retrieves the distance between the borders of adjoining cells in a table.
border-styleborderStyle Retrieves the style of the left, right, top, and bottom borders of the object.
border-top-colorborderTopColor Retrieves the color of the top border of the object.
border-top-styleborderTopStyle Retrieves the style of the top border of the object.
border-top-widthborderTopWidth Retrieves the width of the top border of the object.
border-widthborderWidth Retrieves the width of the left, right, top, and bottom borders of the object.
bottombottom 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 Retrieves where the caption of a table is located.
clearclear 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.
clipLeft Gets the left coordinate of the object clipping region.
clipRight Gets the right coordinate of the object clipping region.
clipTop Gets the top coordinate of the object clipping region.
colorcolor Retrieves the color of the text of the object.
content New for Internet Explorer 8 content Retrieves generated content to insert before or after an element.
counter-increment New for Internet Explorer 8 counterIncrement Retrieves a list of counters to increment.
counter-reset New for Internet Explorer 8 counterReset Retrieves a list of counters to create or reset to zero.
cursorcursor Retrieves the type of cursor to display as the mouse pointer moves over the object.
directiondirection Retrieves the reading order of the object.
displaydisplay Retrieves whether the object is rendered.
emptyCells New for Internet Explorer 8 emptyCellsDetermines whether to show or hide a cell without content.
font-familyfontFamily Retrieves the name of the font used for text in the object.
font-sizefontSize Retrieves a value that indicates the font size used for text in the object.
font-stylefontStyle Retrieves the font style of the object as italic, normal, or oblique.
font-variantfontVariant Retrieves whether the text of the object is in small capital letters.
fontWeight Gets the numeric weight of the font of the object.
hasLayout Gets a value that indicates whether the object has layout.
heightheight Retrieves the height of the object.
ime-modeimeMode Retrieves the state of an Input Method Editor (IME).
layout-flowlayoutFlow Retrieves the direction and flow of the content in the object.
layout-grid-charlayoutGridChar Retrieves the size of the character grid used for rendering the text content of an element.
layout-grid-linelayoutGridLine Retrieves the gridline value used for rendering the text content of an element.
layout-grid-modelayoutGridMode Retrieves whether the text layout grid uses two dimensions.
layout-grid-typelayoutGridType Retrieves the type of grid used for rendering the text content of an element.
leftleft Retrieves the position of the object relative to the left edge of the next positioned object in the document hierarchy.
letter-spacingletterSpacing Retrieves the amount of additional space between letters in the object.
line-breaklineBreak Retrieves line-breaking rules for text in selected languages such as Japanese, Chinese and Korean.
line-heightlineHeight Retrieves the distance between lines in the object.
list-style-imagelistStyleImage Retrieves a value that indicates which image to use as a list-item marker for the object.
list-style-positionlistStylePosition Retrieves a variable that indicates how the list-item marker is drawn relative to the content of the object.
list-style-typelistStyleType Retrieves the predefined type of the line-item marker for the object.
marginmargin Retrieves the width of the top, right, bottom, and left margins of the object.
margin-bottommarginBottom Retrieves the height of the bottom margin of the object.
margin-leftmarginLeft Retrieves the width of the left margin of the object.
margin-rightmarginRight Retrieves the width of the right margin of the object.
margin-topmarginTop Retrieves the height of the top margin of the object.
max-heightmaxHeight Retrieves the maximum height for an element.
max-widthmaxWidth Retrieves the maximum width for an element.
min-heightminHeight Retrieves the minimum height for an element.
min-widthminWidth Retrieves the minimum width for an element.
-ms-interpolation-modemsInterpolationMode Retrieves the interpolation (resampling) method used to stretch images.
orphans New for Internet Explorer 8 orphans 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 Retrieves the color, style, and width of the outline frame.
outline-color New for Internet Explorer 8 outlineColor Retrieves the color of the outline frame.
outline-style New for Internet Explorer 8 outlineStyle Retrieves the style of the outline frame.
outline-width New for Internet Explorer 8 outlineWidth Retrieves the width of the outline frame.
overflowoverflow 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 Retrieves how to manage the content of the object when the content exceeds the width of the object.
overflow-yoverflowY Retrieves how to manage the content of the object when the content exceeds the height of the object.
paddingpadding Retrieves 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 Retrieves the amount of space to insert between the bottom border of the object and the content.
padding-leftpaddingLeft Retrieves the amount of space to insert between the left border of the object and the content.
padding-rightpaddingRight Retrieves the amount of space to insert between the right border of the object and the content.
padding-toppaddingTop Retrieves the amount of space to insert between the top border of the object and the content.
page-break-afterpageBreakAfter Retrieves a value indicating whether a page break occurs after the object.
page-break-beforepageBreakBefore Retrieves a string indicating whether a page break occurs before the object.
page-break-inside New for Internet Explorer 8 pageBreakInside Retrieves a string indicating whether a page break is allowed to occur inside the object.
positionposition Retrieves the type of positioning used for the object.
rightright Retrieves the position of the object relative to the right edge of the next positioned object in the document hierarchy.
ruby-alignrubyAlign Retrieves the position of the ruby text specified by the rt object.
ruby-overhangrubyOverhang Retrieves the position of the ruby text specified by the rt object.
ruby-positionrubyPosition Retrieves the position of the ruby text specified by the rt object.
scrollbar-3dlight-colorscrollbar3dLightColor Retrieves the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.
scrollbar-arrow-colorscrollbarArrowColor Retrieves the color of the arrow elements of a scroll arrow.
scrollbar-base-colorscrollbarBaseColor Retrieves the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.
scrollbar-darkshadow-colorscrollbarDarkShadowColor Retrieves the color of the gutter of a scroll bar.
scrollbar-face-colorscrollbarFaceColor Retrieves the color of the scroll box and scroll arrows of a scroll bar.
scrollbar-highlight-colorscrollbarHighlightColor Retrieves the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.
scrollbar-shadow-colorscrollbarShadowColor Retrieves the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.
scrollbar-track-colorscrollbarTrackColor Retrieves the color of the track element of a scroll bar.
floatstyleFloat Retrieves on which side of the object the text will flow.
table-layouttableLayout Retrieves a string that indicates whether the table layout is fixed.