Style attribute | Style property | Description |
---|
ACCELERATOR | accelerator |
Retrieves a string that indicates whether the object contains an accelerator key. |
background-attachment | backgroundAttachment |
Retrieves how the background image is attached to the object within the document. |
background-color | backgroundColor |
Retrieves the color behind the content of the object. |
background-image | backgroundImage |
Retrieves the background image of the object. |
background-position-x | backgroundPositionX |
Retrieves the x-coordinate of the backgroundPosition property. |
background-position-y | backgroundPositionY |
Retrieves the y-coordinate of the backgroundPosition property. |
background-repeat | backgroundRepeat |
Retrieves how the backgroundImage property of the object is tiled. |
behavior | behavior |
Retrieves the location of the Dynamic HTML (DHTML) behavior. |
border-bottom-color | borderBottomColor |
Retrieves the color of the bottom border of the object. |
border-bottom-style | borderBottomStyle |
Retrieves the style of the bottom border of the object. |
border-bottom-width | borderBottomWidth |
Retrieves the width of the bottom border of the object. |
border-collapse | borderCollapse |
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-color | borderColor |
Retrieves the border color of the object. |
border-left-color | borderLeftColor |
Retrieves the color of the left border of the object. |
border-left-style | borderLeftStyle |
Retrieves the style of the left border of the object. |
border-left-width | borderLeftWidth |
Retrieves the width of the left border of the object. |
border-right-color | borderRightColor |
Retrieves the color of the right border of the object. |
border-right-style | borderRightStyle |
Retrieves the style of the right border of the object. |
border-right-width | borderRightWidth |
Retrieves the width of the right border of the object. |
border-spacing | borderSpacing |
Retrieves
the distance between the borders of adjoining cells in a table.
|
border-style | borderStyle |
Retrieves the style of the left, right, top, and bottom borders of the object. |
border-top-color | borderTopColor |
Retrieves the color of the top border of the object. |
border-top-style | borderTopStyle |
Retrieves the style of the top border of the object. |
border-top-width | borderTopWidth |
Retrieves the width of the top border of the object. |
border-width | borderWidth |
Retrieves the width of the left, right, top, and bottom borders of the object. |
bottom | bottom |
Retrieves the bottom position of the object in relation to the bottom of the next positioned object in the document hierarchy. |
caption-side | captionSide |
Retrieves
where the caption
of a table is located.
|
clear | clear |
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. |
color | color |
Retrieves the color of the text of the object. |
content | content |
Retrieves
generated content to insert before or after an element.
|
cursor | cursor |
Retrieves the type of cursor to display as the mouse pointer moves over the object. |
direction | direction |
Retrieves the reading order of the object. |
display | display |
Retrieves whether the object is rendered. |
font-family | fontFamily |
Retrieves the name of the font used for text in the object. |
font-size | fontSize |
Retrieves a value that indicates the font size used for text in the object. |
font-style | fontStyle |
Retrieves the font style of the object as italic , normal , or oblique . |
font-variant | fontVariant |
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. |
height | height |
Retrieves the height of the object. |
ime-mode | imeMode |
Retrieves the state of an Input Method Editor (IME). |
layout-flow | layoutFlow |
Retrieves the direction and flow of the content in the object. |
layout-grid-char | layoutGridChar |
Retrieves the size of the character grid used for rendering the text content of an element. |
layout-grid-line | layoutGridLine |
Retrieves the gridline value used for rendering the text content of an element. |
layout-grid-mode | layoutGridMode |
Retrieves whether the text layout grid uses two dimensions. |
layout-grid-type | layoutGridType |
Retrieves the type of grid used for rendering the text content of an element. |
left | left |
Retrieves the position of the object relative to the left edge of the next positioned object in the document hierarchy. |
letter-spacing | letterSpacing |
Retrieves the amount of additional space between letters in the object. |
line-break | lineBreak |
Retrieves
line-breaking rules for text in selected languages
such as Japanese, Chinese and Korean.
|
line-height | lineHeight |
Retrieves the distance between lines in the object. |
list-style-image | listStyleImage |
Retrieves a value that indicates which image to use as a list-item marker for the object. |
list-style-position | listStylePosition |
Retrieves a variable that indicates how the list-item marker is drawn relative to the content of the object. |
list-style-type | listStyleType |
Retrieves the predefined type of the line-item marker for the object. |
margin | margin |
Retrieves the width of the top, right, bottom, and left margins of the object. |
margin-bottom | marginBottom |
Retrieves the height of the bottom margin of the object. |
margin-left | marginLeft |
Retrieves the width of the left margin of the object. |
margin-right | marginRight |
Retrieves the width of the right margin of the object. |
margin-top | marginTop |
Retrieves the height of the top margin of the object. |
max-height | maxHeight |
Retrieves the maximum height for an element. |
max-width | maxWidth |
Retrieves the maximum width for an element. |
min-height | minHeight |
Retrieves the minimum height for an element. |
min-width | minWidth |
Retrieves the minimum width for an element. |
-ms-interpolation-mode | msInterpolationMode |
Retrieves the interpolation (resampling) method used to stretch images. |
orphans | orphans |
Retrieves
the minimum number of lines of a paragraph that must appear
at the bottom of a page.
|
outline | outline |
Retrieves
the color, style, and width of the outline frame.
|
outline-color | outlineColor |
Retrieves
the color of the outline frame.
|
outline-style | outlineStyle |
Retrieves
the style of the outline frame.
|
outline-width | outlineWidth |
Retrieves
the width of the outline frame.
|
overflow | overflow |
Retrieves a value indicating how to manage the content of the object when the content exceeds the height or width of the object. |
overflow-x | overflowX |
Retrieves how to manage the content of the object when the content exceeds the width of the object. |
overflow-y | overflowY |
Retrieves how to manage the content of the object when the content exceeds the height of the object. |
padding | padding |
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-bottom | paddingBottom |
Retrieves the amount of space to insert between the bottom border of the object and the content. |
padding-left | paddingLeft |
Retrieves the amount of space to insert between the left border of the object and the content. |
padding-right | paddingRight |
Retrieves the amount of space to insert between the right border of the object and the content. |
padding-top | paddingTop |
Retrieves the amount of space to insert between the top border of the object and the content. |
page-break-after | pageBreakAfter |
Retrieves a value indicating whether a page break occurs after the object. |
page-break-before | pageBreakBefore |
Retrieves a string indicating whether a page break occurs before the object. |
page-break-inside | pageBreakInside |
Retrieves
a string indicating whether a page break is allowed to occur inside the
object.
|
position | position |
Retrieves the type of positioning used for the object. |
right | right |
Retrieves the position of the object relative to the right edge of the next positioned object in the document hierarchy. |
ruby-align | rubyAlign |
Retrieves the position of the ruby text specified by the rt object. |
ruby-overhang | rubyOverhang |
Retrieves the position of the ruby text specified by the rt object. |
ruby-position | rubyPosition |
Retrieves the position of the ruby text specified by the rt object. |
scrollbar-3dlight-color | scrollbar3dLightColor |
Retrieves the color of the top and left edges of the scroll box and scroll arrows of a scroll bar. |
scrollbar-arrow-color | scrollbarArrowColor |
Retrieves the color of the arrow elements of a scroll arrow. |
scrollbar-base-color | scrollbarBaseColor |
Retrieves the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows. |
scrollbar-darkshadow-color | scrollbarDarkShadowColor |
Retrieves the color of the gutter of a scroll bar. |
scrollbar-face-color | scrollbarFaceColor |
Retrieves the color of the scroll box and scroll arrows of a scroll bar. |
scrollbar-highlight-color | scrollbarHighlightColor |
Retrieves the color of the top and left edges of the scroll box and scroll arrows of a scroll bar. |
scrollbar-shadow-color | scrollbarShadowColor |
Retrieves the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar. |
scrollbar-track-color | scrollbarTrackColor |
Retrieves the color of the track element of a scroll bar. |
float | styleFloat |
Retrieves on which side of the object the text will flow. |
table-layout | tableLayout |
Retrieves a string that indicates whether the table layout is fixed. |
text-align | textAlign |
Retrieves whether the text in the object is left-aligned, right-aligned, centered, or justified. |
text-align-last | textAlignLast |
Retrieves how to align the last line or only line of text in the object. |
text-autospace | textAutospace |
Retrieves the autospacing and narrow space width adjustment of text. |
text-decoration | textDecoration |
Retrieves a value that indicates whether the text in the object has blink, line-through, overline, or underline decorations. |
text-indent | textIndent |
Retrieves the indentation of the first line of text in the object. |
text-justify | textJustify |
Retrieves the type of alignment used to justify text in the object. |
text-kashida-space | textKashidaSpace |
Retrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object. |
text-overflow | textOverflow |
Retrieves a value that indicates whether to render ellipses(...) to indicate text overflow. |
text-transform | textTransform |
Retrieves the rendering of the text in the object. |
text-underline-position | textUnderlinePosition |
Retrieves the position of the underline decoration that is set through the textDecoration property of the object. |
top | top |
Retrieves the position of the object relative to the top of the next positioned object in the document hierarchy. |
unicode-bidi | unicodeBidi |
Retrieves the level of embedding with respect to the bidirectional algorithm. |
vertical-align | verticalAlign |
Retrieves the vertical alignment of the object. |
visibility | visibility |
Retrieves whether the content of the object is displayed. |
white-space | whiteSpace |
Retrieves a value that indicates whether lines are automatically broken inside the object. |
widows | widows |
Retrieves
the minimum number of lines of a paragraph that must appear
at the top of a page.
|
width | width |
Retrieves the width of the object. |
word-break | wordBreak |
Retrieves
line-breaking behavior within words, particularly where multiple
languages appear in the object.
|
word-spacing | wordSpacing |
Retrieves the amount of additional space between words in the object. |
word-wrap | wordWrap |
Retrieves whether to break words when the content exceeds the boundaries of its container. |
writing-mode | writingMode |
Retrieves the direction and flow of the content in the object. |
z-index | zIndex |
Retrieves the stacking order of positioned objects. |
zoom | zoom |
Retrieves the magnification scale of the object. |