Style attribute | Style property | Description |
---|
background | background |
Sets or retrieves up to five separate background properties of the object. |
background-attachment | backgroundAttachment |
Sets or retrieves how the background image is attached to the object within the document. |
background-color | backgroundColor |
Sets or retrieves the color behind the content of the object. |
background-image | backgroundImage |
Sets or retrieves the background image of the object. |
background-position | backgroundPosition |
Sets or retrieves the position of the background of the object. |
background-repeat | backgroundRepeat |
Sets or retrieves how the backgroundImage property of the object is tiled. |
behavior | behavior |
Sets or retrieves the location of the Dynamic HTML (DHTML) behavior. |
border | border |
Sets or retrieves the properties to draw around the object. |
border-bottom | borderBottom |
Sets or retrieves the properties of the bottom border of the object. |
border-bottom-color | borderBottomColor |
Sets or retrieves the color of the bottom border of the object. |
border-bottom-style | borderBottomStyle |
Sets or retrieves the style of the bottom border of the object. |
border-bottom-width | borderBottomWidth |
Sets or retrieves the width of the bottom border of the object. |
border-color | borderColor |
Sets or retrieves the border color of the object. |
border-left | borderLeft |
Sets or retrieves the properties of the left border of the object. |
border-left-color | borderLeftColor |
Sets or retrieves the color of the left border of the object. |
border-left-style | borderLeftStyle |
Sets or retrieves the style of the left border of the object. |
border-left-width | borderLeftWidth |
Sets or retrieves the width of the left border of the object. |
border-right | borderRight |
Sets or retrieves the properties of the right border of the object. |
border-right-color | borderRightColor |
Sets or retrieves the color of the right border of the object. |
border-right-style | borderRightStyle |
Sets or retrieves the style of the right border of the object. |
border-right-width | borderRightWidth |
Sets or retrieves the width of the right border of the object. |
border-style | borderStyle |
Sets or retrieves the style of the left, right, top, and bottom borders of the object. |
border-top | borderTop |
Sets or retrieves the properties of the top border of the object. |
border-top-color | borderTopColor |
Sets or retrieves the color of the top border of the object. |
border-top-style | borderTopStyle |
Sets or retrieves the style of the top border of the object. |
border-top-width | borderTopWidth |
Sets or retrieves the width of the top border of the object. |
border-width | borderWidth |
Sets or retrieves the width of the left, right, top, and bottom borders of the object. |
bottom | bottom |
Sets or retrieves the bottom position of the object in relation to the bottom of the next positioned object in the document hierarchy. |
clear | clear |
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. |
clip | clip |
Sets or retrieves which part of a positioned object is visible. |
color | color |
Sets or retrieves the color of the text of the object. |
font | font |
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-family | fontFamily |
Sets or retrieves the name of the font used for text in the object. |
font-size | fontSize |
Sets or retrieves a value that indicates the font size used for text in the object. |
font-style | fontStyle |
Sets or retrieves the font style of the object as italic , normal , or oblique . |
font-variant | fontVariant |
Sets or retrieves whether the text of the object is in small capital letters. |
| fontWeight |
Gets the numeric weight of the font of the object. |
font-weight | fontWeight |
Sets or retrieves the weight of the font of the object. |
| hasLayout |
Gets a value that indicates whether the object has layout. |
layout-flow | layoutFlow |
Sets or retrieves the direction and flow of the content in the object. |
left | left |
Sets or retrieves the position of the object relative to the left edge of the next positioned object in the document hierarchy. |
letter-spacing | letterSpacing |
Sets or retrieves the amount of additional space between letters in the object. |
line-height | lineHeight |
Sets or retrieves the distance between lines in the object. |
margin | margin |
Sets or retrieves the width of the top, right, bottom, and left margins of the object. |
margin-bottom | marginBottom |
Sets or retrieves the height of the bottom margin of the object. |
margin-left | marginLeft |
Sets or retrieves the width of the left margin of the object. |
margin-right | marginRight |
Sets or retrieves the width of the right margin of the object. |
margin-top | marginTop |
Sets or retrieves the height of the top margin of the object. |
page-break-after | pageBreakAfter |
Sets or retrieves a value indicating whether a page break occurs after the object. |
page-break-before | pageBreakBefore |
Sets or retrieves a string indicating whether a page break occurs before the object. |
position | position |
Sets or retrieves the type of positioning used for the object. |
right | right |
Sets or retrieves the position of the object relative to the right edge of the next positioned object in the document hierarchy. |
float | styleFloat |
Sets or retrieves on which side of the object the text will flow. |
text-align-last | textAlignLast |
Sets or retrieves how to align the last line or only line of text in the object. |
text-autospace | textAutospace |
Sets or retrieves the autospacing and narrow space width adjustment of text. |
text-decoration | textDecoration |
Sets or retrieves 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-indent | textIndent |
Sets or retrieves the indentation of the first line of text in the object. |
text-kashida-space | textKashidaSpace |
Sets or retrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object. |
text-overflow | textOverflow |
Sets or retrieves a value that indicates whether to render ellipses(...) to indicate text overflow. |
text-transform | textTransform |
Sets or retrieves the rendering of the text in the object. |
text-underline-position | textUnderlinePosition |
Sets or retrieves the position of the underline decoration that is set through the textDecoration property of the object. |
top | top |
Sets or retrieves the position of the object relative to the top of the next positioned object in the document hierarchy. |
visibility | visibility |
Sets or retrieves whether the content of the object is displayed. |
white-space | whiteSpace |
Sets or retrieves a value that indicates whether lines are automatically broken inside the object. |
word-spacing | wordSpacing |
Sets or retrieves the amount of additional space between words in the object. |
word-wrap | wordWrap |
Sets or retrieves whether to break words when the content exceeds the boundaries of its container. |
writing-mode | writingMode |
Sets or retrieves the direction and flow of the content in the object. |
z-index | zIndex |
Sets or retrieves the stacking order of positioned objects. |
zoom | zoom |
Sets or retrieves the magnification scale of the object. |