Style attribute | Style property | Description |
---|
:first-child | :first-child |
Applies one or more styles to any element that is the first child of its parent. |
:hover | :hover |
Sets the style of an element when the user hovers the mouse pointer over the element. |
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-position-x | backgroundPositionX |
Sets or retrieves the x-coordinate of the backgroundPosition property. |
background-position-y | backgroundPositionY |
Sets or retrieves the y-coordinate of the backgroundPosition property. |
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. |
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. |
cursor | cursor |
Sets or retrieves the type of cursor to display as the mouse pointer moves over the object. |
direction | direction |
Sets or retrieves the reading order of the object. |
display | display |
Sets or retrieves whether the object is rendered. |
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. |
height | height |
Sets or retrieves the height of the object. |
layout-grid | layoutGrid |
Sets or retrieves the composite document grid properties that specify the layout of text characters. |
layout-grid-char | layoutGridChar |
Sets or retrieves the size of the character grid used for rendering the text content of an element. |
layout-grid-line | layoutGridLine |
Sets or retrieves the gridline value used for rendering the text content of an element. |
layout-grid-mode | layoutGridMode |
Sets or retrieves whether the text layout grid uses two dimensions. |
layout-grid-type | layoutGridType |
Sets or retrieves the type of grid used for rendering the text content of an element. |
letter-spacing | letterSpacing |
Sets or retrieves the amount of additional space between letters in the object. |
line-break | lineBreak |
Sets or retrieves line-breaking rules for text in selected languages such as Japanese, Chinese and Korean. |
line-height | lineHeight |
Sets or retrieves the distance between lines in the object. |
max-height | maxHeight |
Sets or retrieves the maximum height for an element. |
min-height | minHeight |
Sets or retrieves the minimum height for an element. |
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. |
| pixelBottom |
Sets or retrieves the bottom position of the object. |
| pixelHeight |
Sets or retrieves the height of the object. |
| pixelLeft |
Sets or retrieves the left position of the object. |
| pixelRight |
Sets or retrieves the right position of the object. |
| pixelTop |
Sets or retrieves the top position of the object. |
| pixelWidth |
Sets or retrieves the width of the object. |
| posBottom |
Sets or retrieves the bottom position of the object in the units specified by the bottom attribute. |
| posHeight |
Sets or retrieves the height of the object in the units specified by the height attribute. |
position | position |
Sets or retrieves the type of positioning used for the object. |
| posLeft |
Sets or retrieves the left position of the object in the units specified by the left attribute. |
| posRight |
Sets or retrieves the right position of the object in the units specified by the right attribute. |
| posTop |
Sets or retrieves the top position of the object in the units specified by the top attribute. |
| posWidth |
Sets or retrieves the width of the object in the units specified by the width attribute. |
text-align | textAlign |
Sets or retrieves whether the text in the object is left-aligned, right-aligned, centered, or justified. |
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-justify | textJustify |
Sets or retrieves the type of alignment used to justify text in the object. |
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. |
unicode-bidi | unicodeBidi |
Sets or retrieves the level of embedding with respect to the bidirectional algorithm. |
vertical-align | verticalAlign |
Sets or retrieves the vertical alignment of the object. |
visibility | visibility |
Sets or retrieves whether the content of the object is displayed. |
word-break | wordBreak |
Sets or retrieves line-breaking behavior within words, particularly where multiple languages appear in the object. |
word-spacing | wordSpacing |
Sets or retrieves the amount of additional space between words 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. |