HTMLStyleObject : Object

Reference to the inline CSS style for the element. This is an internal convenience object to allow access to the CSS style properties, and cannot be instantiated directly. It will disappear in future revisions.

Constructors

ConstructorIEMozillaNetscapeOperaSafariNetscapte
Reference to the inline CSS style for the element.
 

Properties

PropertyIEMozillaNetscapeOperaSafariNetscapte
Specifies whether or not the element has an accelerator key, which is a shortcut for selecting the element.
5.5+nonononono
 
Specifies the speaker balance for audio content.
nononononono
 
Defines the background properties for an element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies whether or not the background image is fixed or scrollable as a user scrolls the document.
4.0+1.0+6.0+4.0+1.0+no
 
Specifies the background color for the element. Specify either a color name or RGB color code.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the URL for a background image for an element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the position of a background image for an element.
4.0+1.0+6.0+4.0+1.0+no
 
Specifies the x-position of a background image for an element.
5.0+nonononono
 
Specifies the y-position of a background image for an element.
5.0+nonononono
 
Specifies how a background image repeats for an element.
4.0+1.0+4.0+4.0+1.0+no
 
Defines the border properties for an element.
4.0+1.0+4.0+5.0+1.0+no
 
Defines the properties for the bottom border for the element.
4.0+1.0+6.0+4.0+1.0+no
 
Specifies the color for a bottom border. Specify either a color name or RGB color code.
4.0+1.0+6.0+7.0+1.0+no
 
Specifies a style for a bottom border.
4.0+1.0+6.0+7.0+1.0+no
 
Specifies the width of the bottom border.
4.0+1.0+4.0+5.0+1.0+no
 
Specifies whether the borders for an element are collapsed or separated.
5.0+1.0+6.0+5.0+1.2+no
 
Specifies the color for the borders for an element. Specify either a color name or RGB color code.
4.0+1.0+4.0+4.0+1.0+no
 
Defines the properties for the left border for the element.
4.0+1.0+6.0+4.0+1.0+no
 
Specifies the color for a left border. Specify either a color name or RGB color code.
4.0+1.0+6.0+7.0+1.0+no
 
Specifies a style for a left border.
4.0+1.0+6.0+7.0+1.0+no
 
Specifies the width of the left border.
4.0+1.0+4.0+5.0+1.0+no
 
Defines the properties for the right border for the element.
4.0+1.0+6.0+4.0+1.0+no
 
Specifies the color for a right border. Specify either a color name or RGB color code.
4.0+1.0+6.0+7.0+1.0+no
 
Specifies a style for a right border.
4.0+1.0+6.0+7.0+1.0+no
 
Specifies the width of the right border.
4.0+1.0+4.0+5.0+1.0+no
 
Specifies the number of pixels between the border and its contents.
no1.0+6.0+5.0+1.2+no
 
Specifies a style for a border.
4.0+1.0+4.0+5.0+1.0+no
 
Defines the properties for the top border for the element.
4.0+1.0+6.0+4.0+1.0+no
 
Specifies the color for a top border. Specify either a color name or RGB color code.
4.0+1.0+6.0+7.0+1.0+no
 
Specifies a style for a top border.
4.0+1.0+6.0+7.0+1.0+no
 
Specifies the width of the top border.
4.0+1.0+4.0+5.0+1.0+no
 
Specifies the width of the border.
4.0+1.0+4.0+5.0+1.0+no
 
Specifies the y-coordinate for the position of the element relative to the bottom edge of the parent element or browser window.
5.0+1.0+6.0+5.0+1.0+no
 
Specifies the position of a caption for the element.
no1.0+6.0+6.0+1.0+no
 
Specifies the position of the element relative to a floating object on the page.
4.0+1.0+4.0+5.0+1.0+no
 
Specifies the x- and y-coordinates (in pixels) for the clipping rectangle around the element.
4.0+1.0+6.0+5.0+1.0+no
 
Specifies the color of the text for the element. Specify either a color name or RGB color code.
3.0+1.0+4.0+4.0+1.0+no
 
Specifies the content to insert before or after the element.
no1.0+6.0+7.0+1.0+no
 
Specifies a name of a counter and how much to increment the counter by.
nonono7.0+nono
 
Resets a counter to the specified value.
nonono7.0+nono
 
Defines the properties for an aural cue before or after an element.
nononononono
 
Defines the properties for an aural cue before an element.
nononononono
 
Defines the properties for an aural cue after an element.
nononononono
 
Specifies which cursor to display when a user mouses over the element.
5.0+1.0+6.0+7.0+1.2+no
 
Specifies the text direction for the element.
5.0+1.0+6.0+no1.0+no
 
Specifies how to display the element.
4.0+1.0+4.0+5.0+1.0+no
 
Specifies the elevation of the element. You can either one of the relative elevations or specify an angle in degrees.
nononononono
 
Specifies whether to show or hide borders for empty table cells.
no1.0+6.0+5.0+1.2+no
 
Specifies a filter for the element to render and any parameters that the filter takes. You can specify multiple filters.
4.0+nonononono
 
Specifies if an element should float towards the left or right margin of its parent element or web browser.
4.0+1.0+4.0+6.0+1.0+no
 
Defines the properties for the font for the element.
3.0+1.0+4.0+6.0+1.0+no
 
Specifies the font face for the element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies either the explicit or relative size of the font compared to the base font size.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the adjustment to make in font size if an explicitly specified font is unavailable.
nononononono
 
Specifies how a font should be condensed or stretched.
nononononono
 
Specifies a style for a font (e.g. italic).
4.0+1.0+4.0+4.0+1.0+no
 
Specifies a variation for a font (e.g. small-caps).
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the weight of a font (e.g. bold).
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the height (in pixels, points, or as a percentage) of the content of the element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the state of the Input Method Editor (IME) for the element, which allows users to enter and edit Chinese, Japanese, and Korean characters.
5.5+nonononono
 
Specifies the flow direction for the content of the element.
5.5+nonononono
 
Defines the set of layout-grid properties for an element.
5.5+nonononono
 
Specifies the size of a character grid for the content of an element.
5.5+nonononono
 
Specifies the grid line value for the text content of an element.
5.5+nonononono
 
Specifies if the element text layout grid uses the line and/or char mode.
5.5+nonononono
 
Specifies the type of layout grid for the content of an element.
5.5+nonononono
 
Specifies the x-coordinate for the position of the element relative to the left edge of the parent element or browser window.
4.0+1.0+4.0+5.0+1.0+no
 
Specifies the amount of space (in points or pixels) between letters in the text of the element.
4.0+1.0+6.0+4.0+1.0+no
 
Specifies line-breaking rules for Japanese text.
5.5+nonononono
 
Specifies line height of text in multiline elements, such as paragraphs.
3.0+1.0+4.0+4.0+1.0+no
 
Defines the properties for the list style for a list element.
4.0+1.0+6.0+4.0+1.0+no
 
Specifies the URL to an image to use for list items.
4.0+1.0+6.0+4.0+1.0+no
 
Specifies the position of the bullet or number for a list.
4.0+1.0+6.0+4.0+1.0+no
 
Specifies the position of the bullet or number for a list.
4.0+1.0+4.0+4.0+1.0+no
 
Defines the widths (in pixels, points, or a percentage) for the margins for the element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the width (in pixels, points, or a percentage) for the bottom margin of an element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the width (in pixels, points, or a percentage) for the left margin of an element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the width (in pixels, points, or a percentage) for the right margin of an element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the width (in pixels, points, or a percentage) for the top margin of an element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the width (in pixels or points) between the marker box of an element and the surrounding box of its parent element.
nononononono
 
Specifies if cross or crop marks should appear outside of the element on a printed page.
nononononono
 
Specifies the maximum height that an element may be.
no1.0+6.0+7.0+1.3+no
 
Specifies the maximum width that an element may be.
no1.0+6.0+7.0+1.0+no
 
Specifies the minimum height that an element may be.
no1.0+6.0+7.0+1.3+no
 
Specifies the minimum width that an element may be.
no1.0+6.0+7.0+1.0+no
 
Specifies the URL of an XBL file to bind to the element.
nono6.0+nonono
 
Specifies the radius of the border around the element.
no1.0+7.0+nonono
 
Specifies the border radius of the bottom-left corner of the element.
no1.0+7.0+nonono
 
Specifies the border radius of the bottom-right corner of the element.
no1.0+7.0+nonono
 
Specifies the border radius of the top-left corner of the element.
no1.0+7.0+nonono
 
Specifies the border radius of the top-right corner of the element.
no1.0+7.0+nonono
 
Specifies one or more colors to use in a striping effect on the top border of the element.
no1.0+6.0+nonono
 
Specifies one or more colors to use in a striping effect on the right border of the element.
no1.0+7.0+nonono
 
Specifies one or more colors to use in a striping effect on the bottom border of the element.
no1.0+7.0+nonono
 
Specifies one or more colors to use in a striping effect on the left border of the element.
no1.0+7.0+nonono
 
Specifies the level of opacity for the element. Use a two-digit decimal.
no1.0+7.0+nonono
 
Mozilla-specific version of the outline property. Defines the properties for an outline drawn over the outer edge of an element.
nono6.0+nonono
 
Mozilla-specific version of the outline-color property that specifies the color for an outline. Specify either a color name or RGB color code.
nono6.0+nonono
 
Mozilla-specific version of the outline-style property that specifies a style for an outline.
nono6.0+nonono
 
Mozilla-specific version of the outline-width property that specifies the width of the outline.
nono6.0+nonono
 
Specifies the behavior of the element when it receives focus.
nono6.0+nonono
 
Specifies whether or not the element has input focus.
nono6.0+nonono
 
Specifies if a user can change the contents of the element.
nono6.0+nonono
 
Specifies the content selection behavior for the element.
nono6.0+nonono
 
Specifies the value for the link variable.
nonono7.0+nono
 
Specifies the source anchor for the element.
nonono7.0+nono
 
Specifies the minimum number of lines of text that an element must have left at the bottom of a page for printing.
no1.0+6.0+7.0+nono
 
Defines the properties for an outline drawn over the outer edge of an element. Outlines differ from borders in that borders are drawn to the outside of the element.
nono6.0+7.0+1.2+no
 
Specifies the color for an outline. Specify either a color name or RGB color code.
nono6.0+7.0+1.2+no
 
Specifies a style for an outline.
nono6.0+7.0+1.2+no
 
Specifies the width of the outline.
nono6.0+7.0+1.2+no
 
Specifies how to handle content overflow of an element if the content does not fit within the predefined boundaries of the element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies how to handle content overflow of an element if the content is too wide for the element.
6.0+nonononono
 
Specifies how to handle content overflow of an element if the content is too tall for the element.
6.0+nonononono
 
Specifies the amount of padding space between the content of an element and its border.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the amount of padding (in pixels, points, or a percentage) at the bottom of an element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the amount of padding (in pixels, points, or a percentage) for the left side of an element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the amount of padding (in pixels, points, or a percentage) for the right side of an element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the amount of padding (in pixels, points, or a percentage) at the top of an element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the type of page that the element should be displayed on.
5.5+nonononono
 
Defines the way that a page breaks after the element when the page is printed.
4.0+1.0+6.0+7.0+1.2+no
 
Defines the way that a page breaks before the element when the page is printed.
4.0+1.0+6.0+7.0+1.2+no
 
Specifies if an element should have a page break forced inside of the element or if page breaks should be avoided inside the element when the page is printed.
no1.0+6.0+7.0+nono
 
Specifies the number of seconds or milliseconds to pause before and/or after an element before playing audio content.
nononononono
 
Specifies the number of seconds or milliseconds to pause after an element before playing audio content.
nononononono
 
Specifies the number of seconds or milliseconds to pause before an element before playing audio content.
nononononono
 
Specifies the frequency of a speaking voice for audio content.
nononononono
 
Specifies the range of the pitch of a speaking voice for audio content.
nononononono
 
Specifies a sound to play while the content of the element is being spoken.
nononononono
 
Specifies how the element is positioned relative to the page or other elements.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the style of quotation marks to use for embedded quotes.
no1.0+6.0+7.0+nono
 
Specifies the richness of the speaking voice for audio content.
nononononono
 
Specifies the x-coordinate for the position of the element relative to the right edge of the parent element or browser window.
4.0+1.0+6.0+4.0+1.0+no
 
Specifies the alignment for ruby text.
5.0+nonononono
 
Specifies the overhang of ruby text.
5.0+nonononono
 
Specifies the position of ruby text.
5.0+nonononono
 
Specifies the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.
5.5+nonononono
 
Specifies the color of the arrow of a scroll bar.
5.5+nonononono
 
Specifies the color of the main elements of a scroll bar.
5.5+nonononono
 
Specifies the color of the gutter of a scroll bar.
5.5+nonononono
 
Specifies the color of the scroll box and arrows of a scroll bar.
5.5+nonononono
 
Specifies the color of the top and left edges of the scroll box and arrows of a scroll bar.
5.5+nonononono
 
Specifies the color of the bottom and right edges of the scroll box and arrows of a scroll bar.
5.5+nonononono
 
Specifies the color of the track element of a scroll bar.
5.5+nonononono
 
Specifies the size and orientation of a page for print output.
no1.0+6.0+7.0+nono
 
Specifies how the content will be rendered as audio content.
nononononono
 
For audio content, specifies whether table headers are spoken before every cell or just once until the header changes.
nononononono
 
For audio content, specifies whether numerals are spoken as individual digits or continuous numbers.
nononononono
 
For audio content, specifies whether punctuation characters will be spoken or read as pauses.
nononononono
 
For audio content, specifies the speaking rate.
nononononono
 
For audio content, specifies the number of inflection points in the voice.
nononononono
 
Specifies whether the layout of table rows, columns, and cells is fixed.
5.0+1.0+6.0+7.0+1.0+no
 
Specifies the horizontal alignment property for the element.
3.0+1.0+4.0+4.0+1.0+no
 
Specifies the alignment for the last or only line of text for the element.
5.0+nonononono
 
Specifies a text decoration for the element.
4.0+1.0+4.0+6.0+1.0+no
 
Specifies the amount (in pixels, points, or a percentage) that the first line of text should be indented in a block of content.
3.0+1.0+4.0+4.0+1.0+no
 
Specifies the alignment to use to justify the text for the element.
5.0+nonononono
 
Specifies whether to use ellipses (...) to indicate text overflow.
5.0+nonononono
 
Defines the horizontal depth, vertical depth, blur, and color for a drop-shadow for text content in the element.
nononono1.1+no
 
Specifies that the text for the element should be converted to the assigned case or format.
4.0+1.0+4.0+6.0+1.0+no
 
Specifies the position of the underline text-decoration.
6.0+nonononono
 
Specifies the y-coordinate for the position of the element relative to the top edge of the parent element or browser window.
4.0+1.0+4.0+6.0+1.0+no
 
Specifies that the text direction in the element may be overriden for multi-language support.
5.0+1.0+6.0+nonono
 
Specifies the vertical alignment property for the element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies whether an element is visible or hidden.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the speaking voice for audio content.
nononononono
 
Specifies the sound volume for audio content.
nononononono
 
Specifies how to handle white space characters for the element.
5.5+1.0+4.0+4.0+1.0+no
 
Specifies the minimum number of lines of text that an element must have left at the top of a page for printing.
no1.0+6.0+7.0+nono
 
Specifies the width (in pixels, points, or as a percentage) of the content of the element.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies line-breaking behavior between words in the content of the element.
6.0+nonononono
 
Specifies the amount of space between words for the element text.
6.0+1.0+4.0+4.0+1.0+no
 
Specifies line-breaking behavior for words that are longer than their container boundaries.
6.0+nonononono
 
Specifies the direction and flow of content in the element.
6.0+nonononono
 
Specifies the stacking order of the element relative to other layers. A higher z-index value will place the element above layers with lower z-index values.
4.0+1.0+4.0+4.0+1.0+no
 
Specifies the magnification scale for the element.
5.5+nonononono
 

Constructor Detail

HTMLStyleObject HTMLStyleObject()

Reference to the inline CSS style for the element.

Visibility
internal

Property Detail

String accelerator

Specifies whether or not the element has an accelerator key, which is a shortcut for selecting the element.

Remarks
IE only.

String azimuth

Specifies the speaker balance for audio content.

Remarks
To specify an angle, use syntax similar to "90deg".
Availability

W3C

String background

Defines the background properties for an element.

To specify a background image in an "images" directory named myCat.jpg that repeats vertically, use the following syntax: body {background: url(images/myCat.jpg), repeat-y}.
Remarks
Use the background property as a shortcut to typing out all of the individual background properties separately. You can specify any valid value for a background- property as part of background.
Availability

W3C

String backgroundAttachment

Specifies whether or not the background image is fixed or scrollable as a user scrolls the document.

Availability

W3C

String backgroundColor

Specifies the background color for the element. Specify either a color name or RGB color code.

Availability

W3C

String backgroundImage

Specifies the URL for a background image for an element.

To specify a background image in an "images" directory named myCat.jpg, use the following syntax: body {background-image: url(images/myCat.jpg)}.
Availability

W3C

String backgroundPosition

Specifies the position of a background image for an element.

Remarks
If you do not specify one or more of the values top, center, bottom, left, or right, you also specify absolute pixel values or percentage values.
Availability

W3C

String backgroundPositionX

Specifies the x-position of a background image for an element.

Remarks
IE only.

String backgroundPositionY

Specifies the y-position of a background image for an element.

Remarks
IE only.

String backgroundRepeat

Specifies how a background image repeats for an element.

Availability

W3C

String border

Defines the border properties for an element.

To specify a thick, red, dashed border, use the following syntax: .myborderclass {border: thick red dashed;}.
Remarks
Use the border property as a shortcut to typing out all of the individual border properties separately. You can specify any valid value for a border- property as part of border.
Availability

W3C

String borderBottom

Defines the properties for the bottom border for the element.

To specify a thick, red, dashed bottom border, use the following syntax: .myborderbottomclass {border-bottom: thick red dashed;}.
Remarks
Use the border-bottom property as a shortcut to typing out all of the individual border-bottom properties separately. You can specify any valid value for a border-bottom- property as part of border-bottom.
Availability

W3C

String borderBottomColor

Specifies the color for a bottom border. Specify either a color name or RGB color code.

Availability

W3C

String borderBottomStyle

Specifies a style for a bottom border.

Availability

W3C

String borderBottomWidth

Specifies the width of the bottom border.

Remarks
You can also specify a fixed pixel value for border-bottom-width.
Availability

W3C

String borderCollapse

Specifies whether the borders for an element are collapsed or separated.

Availability

W3C

String borderColor

Specifies the color for the borders for an element. Specify either a color name or RGB color code.

Availability

W3C

String borderLeft

Defines the properties for the left border for the element.

To specify a thick, red, dashed left border, use the following syntax: .myborderleftclass {border-left: thick red dashed;}.
Remarks
Use the border-left property as a shortcut to typing out all of the individual border-left properties separately. You can specify any valid value for a border-left- property as part of border-left.
Availability

W3C

String borderLeftColor

Specifies the color for a left border. Specify either a color name or RGB color code.

Availability

W3C

String borderLeftStyle

Specifies a style for a left border.

Availability

W3C

String borderLeftWidth

Specifies the width of the left border.

Remarks
You can also specify a fixed pixel value for border-left-width.
Availability

W3C

String borderRight

Defines the properties for the right border for the element.

To specify a thick, red, dashed right border, use the following syntax: .myborderrightclass {border-right: thick red dashed;}.
Remarks
Use the border-right property as a shortcut to typing out all of the individual border-right properties separately. You can specify any valid value for a border-right- property as part of border-right.
Availability

W3C

String borderRightColor

Specifies the color for a right border. Specify either a color name or RGB color code.

Availability

W3C

String borderRightStyle

Specifies a style for a right border.

Availability

W3C

String borderRightWidth

Specifies the width of the right border.

Remarks
You can also specify a fixed pixel value for border-right-width.
Availability

W3C

String borderSpacing

Specifies the number of pixels between the border and its contents.

To specify 6px of space on the sides and 12px of spacing above and below and element, use the following syntax: .myborderclass {border-spacing: 6px 12px;}.
Remarks
To specify different values for horizontal and vertical spacing, specify two values with the horizontal value first.
Availability

W3C

String borderStyle

Specifies a style for a border.

To specify a border style that is solid on top, ridged on the right and bottom, and solid on the left, use the following syntax: .myborderclass {border-style: solid ridged ridged solid;}.
Remarks

Use the border-style property as a shortcut to typing out all of the individual border-style properties separately. You can specify any valid value for a border-style- property as part of border-style.

You can specify up to four different border styles for the border of an element.

  • For border that is the same on all four sides, specify a single value.
  • For border that is different on the top/bottom and left/right sides, specify two values with the top/bottom value first.
  • For border that is different on the top, left/right, and bottom sides, specify three values with the top value first, followed by the left/right and then bottom values.
  • For border with four different styles, specify four values in the order of top, right, bottom, and left.
Availability

W3C

String borderTop

Defines the properties for the top border for the element.

To specify a thick, red, dashed top border, use the following syntax: .mybordertopclass {border-top: thick red dashed;}.
Remarks
Use the border-top property as a shortcut to typing out all of the individual border-top properties separately. You can specify any valid value for a border-top- property as part of border-top.
Availability

W3C

String borderTopColor

Specifies the color for a top border. Specify either a color name or RGB color code.

Availability

W3C

String borderTopStyle

Specifies a style for a top border.

Availability

W3C

String borderTopWidth

Specifies the width of the top border.

Remarks
You can also specify a fixed pixel value for border-top-width.
Availability

W3C

String borderWidth

Specifies the width of the border.

To specify a border width that is 2px on top, 1px on the right and bottom, and 2px on the left, use the following syntax: .myborderclass {border-width: 2px 1px 1px 2px;}.
Remarks

You can also specify a fixed pixel value for border-width.

You can specify up to four different widths for the border of an element.

  • For border that is the same on all four sides, specify a single value.
  • For border that is different on the top/bottom and left/right sides, specify two values with the top/bottom value first.
  • For border that is different on the top, left/right, and bottom sides, specify three values with the top value first, followed by the left/right and then bottom values.
  • For border with four different styles, specify four values in the order of top, right, bottom, and left.
Availability

W3C

String bottom

Specifies the y-coordinate for the position of the element relative to the bottom edge of the parent element or browser window.

Remarks
You can also specify a fixed pixel or percentage value for bottom.
Availability

W3C

String captionSide

Specifies the position of a caption for the element.

Availability

W3C

String clear

Specifies the position of the element relative to a floating object on the page.

Availability

W3C

String clip

Specifies the x- and y-coordinates (in pixels) for the clipping rectangle around the element.

Availability

W3C

String color

Specifies the color of the text for the element. Specify either a color name or RGB color code.

Availability

W3C

String content

Specifies the content to insert before or after the element.

To specify that a paragraph should have an image from an "images" directory called "bluestar.gif" before it use the following syntax: p:before {content: url(images/bluestar.gif);}.
Remarks
Use content to specify either a quote style or an image to use (similar to a bullet) before or after an element.
Availability

W3C

String counterIncrement

Specifies a name of a counter and how much to increment the counter by.

To specify a level-1 section heading with an incremented Roman numeral before each heading, use the following syntax: H1:before {counter(section, upper-roman); counter-increment: section;}.
Remarks
Use the counter-increment property for styles such as numbered headings.
Availability

W3C

String counterReset

Resets a counter to the specified value.

To specify a level-1 section heading with an incremented Roman numeral before each heading and that sets a counter called "section" to "1" each time it occurs, use the following syntax: H1:before {counter(chapter, upper-roman); counter-increment: section; counter-reset section 1;}.
Availability

W3C

String cue

Defines the properties for an aural cue before or after an element.

To specify a sound file named "bell.wav" before an H1 element and a sound file named "horns.wav", use the following syntax: H1 {cue: url("bell.wav") url("horns.wav");}.
Remarks
Use the cue property as a shortcut to typing out both the cue-before and cue-after properties separately.
Availability

W3C

String cueBefore

Defines the properties for an aural cue before an element.

To specify a sound file named "bell.wav" before an H1 element, use the following syntax: H1 {cue-before: url("bell.wav");}.
Availability

W3C

String cueAfter

Defines the properties for an aural cue after an element.

To specify a sound file named "horns.wav" after an H1 element, use the following syntax: H1 {cue: url("horns.wav");}.
Availability

W3C

String cursor

Specifies which cursor to display when a user mouses over the element.

Availability

W3C

String direction

Specifies the text direction for the element.

Availability

W3C

String display

Specifies how to display the element.

Availability

W3C

String elevation

Specifies the elevation of the element. You can either one of the relative elevations or specify an angle in degrees.

Remarks
To specify an angle, use syntax similar to "90deg".
Availability

W3C

String emptyCells

Specifies whether to show or hide borders for empty table cells.

Availability

W3C

String filter

Specifies a filter for the element to render and any parameters that the filter takes. You can specify multiple filters.

Remarks
IE only.

String float

Specifies if an element should float towards the left or right margin of its parent element or web browser.

Availability

W3C

String font

Defines the properties for the font for the element.

To specify an italic, 12px, sans-serif font for a paragraph, use the following syntax: p { font: italic 12px sans-serif; }.
Remarks
Use the font property as a shortcut to typing out all of the individual font properties separately. You can specify any valid value for a font property as part of font.
Availability

W3C

String fontFamily

Specifies the font face for the element.

Availability

W3C

String fontSize

Specifies either the explicit or relative size of the font compared to the base font size.

Remarks
You can explicitly specify a font size for font-size in either pixels or a percentage.
Availability

W3C

String fontSizeAdjust

Specifies the adjustment to make in font size if an explicitly specified font is unavailable.

Availability

W3C

String fontStretch

Specifies how a font should be condensed or stretched.

Availability

W3C

String fontStyle

Specifies a style for a font (e.g. italic).

Availability

W3C

String fontVariant

Specifies a variation for a font (e.g. small-caps).

Availability

W3C

String fontWeight

Specifies the weight of a font (e.g. bold).

Availability

W3C

String height

Specifies the height (in pixels, points, or as a percentage) of the content of the element.

Remarks
height does not include the margins, padding, or borders of an element.
Availability

W3C

String imeMode

Specifies the state of the Input Method Editor (IME) for the element, which allows users to enter and edit Chinese, Japanese, and Korean characters.

Remarks
IE only.

String layoutFlow

Specifies the flow direction for the content of the element.

Remarks
IE only.

String layoutGrid

Defines the set of layout-grid properties for an element.

Remarks
IE only.

String layoutGridChar

Specifies the size of a character grid for the content of an element.

Remarks
IE only.

String layoutGridLine

Specifies the grid line value for the text content of an element.

Remarks
IE only.

String layoutGridMode

Specifies if the element text layout grid uses the line and/or char mode.

Remarks
IE only.

String layoutGridType

Specifies the type of layout grid for the content of an element.

Remarks
IE only.

String left

Specifies the x-coordinate for the position of the element relative to the left edge of the parent element or browser window.

Remarks
You can also specify a fixed pixel or percentage value for left.
Availability

W3C

String letterSpacing

Specifies the amount of space (in points or pixels) between letters in the text of the element.

Availability

W3C

String lineBreak

Specifies line-breaking rules for Japanese text.

Remarks
IE only.

String lineHeight

Specifies line height of text in multiline elements, such as paragraphs.

Remarks
You can also specify a fixed pixel or percentage value for line-height.
Availability

W3C

String listStyle

Defines the properties for the list style for a list element.

To specify an unordered list with a square bullet outside of the list, use the following syntax: ul { list-style: square outside;}.
Remarks
Use the list-style property as a shortcut to typing out all of the individual list-style properties separately. You can specify any valid value for a list-style property as part of list-style.
Availability

W3C

String listStyleImage

Specifies the URL to an image to use for list items.

To specify an unordered list that uses an image called "bluestar.gif" for a bullet, use the following syntax: ul { url(bluestar.gif)}.
Availability

W3C

String listStylePosition

Specifies the position of the bullet or number for a list.

Availability

W3C

String listStyleType

Specifies the position of the bullet or number for a list.

Availability

W3C

String margin

Defines the widths (in pixels, points, or a percentage) for the margins for the element.

To specify a margin that is 10px wide on the top and left and 5px wide on the bottom and right, use the following syntax: body {margin: 10px 5px 5px 10px;}.
Remarks

Use the margin property as a shortcut to typing out all of the individual margin properties separately. You can specify any valid value for a margin property as part of margin.

You can specify up to four different widths for the margin of an element.

  • For a margin that is the same on all four sides, specify a single value.
  • For a margin that is different on the top/bottom and left/right sides, specify two values with the top/bottom value first.
  • For a margin that is different on the top, left/right, and bottom sides, specify three values with the top value first, followed by the left/right and then bottom values.
  • For a margin with four different widths, specify four values in the order of top, right, bottom, and left.
Availability

W3C

String marginBottom

Specifies the width (in pixels, points, or a percentage) for the bottom margin of an element.

Availability

W3C

String marginLeft

Specifies the width (in pixels, points, or a percentage) for the left margin of an element.

Availability

W3C

String marginRight

Specifies the width (in pixels, points, or a percentage) for the right margin of an element.

Availability

W3C

String marginTop

Specifies the width (in pixels, points, or a percentage) for the top margin of an element.

Availability

W3C

String markerOffset

Specifies the width (in pixels or points) between the marker box of an element and the surrounding box of its parent element.

Availability

W3C

String marks

Specifies if cross or crop marks should appear outside of the element on a printed page.

Availability

W3C

String maxHeight

Specifies the maximum height that an element may be.

Remarks
This property is useful for elements that are relatively sized compared to a browser window or parent element.
Availability

W3C

String maxWidth

Specifies the maximum width that an element may be.

Remarks
This property is useful for elements that are relatively sized compared to a browser window or parent element.
Availability

W3C

String minHeight

Specifies the minimum height that an element may be.

Remarks
This property is useful for elements that are relatively sized compared to a browser window or parent element.
Availability

W3C

String minWidth

Specifies the minimum width that an element may be.

Remarks
This property is useful for elements that are relatively sized compared to a browser window or parent element.
Availability

W3C

String mozBinding

Specifies the URL of an XBL file to bind to the element.

Remarks
Proprietary Mozilla property.

String mozBorderRadius

Specifies the radius of the border around the element.

Remarks

Use the border-style property as a shortcut to typing out all of the individual -moz-border-radius properties separately. You can specify any valid value for a border-style- property as part of border-style.

You can specify up to four different border styles for the border of an element.

  • For a border radius that is the same on all four corners, specify a single value.
  • For a border radius that is different on the top-left/bottom-right and top-right/bottom-left corners, specify two values with the top-left/bottom-right value first.
  • For a border radius that are different on the top-left, top-rightright/bottom-left, and bottom-right corners, specify three values in the order of top-left, top-rightright/bottom-left, and bottom-right.
  • For a border radius with four different corners, specify four values in the order of top-left, top-rightright, bottom-right, and bottom-left.

String mozBorderRadiusBottomLeft

Specifies the border radius of the bottom-left corner of the element.

Remarks
Proprietary Mozilla property.

String mozBorderRadiusBottomRight

Specifies the border radius of the bottom-right corner of the element.

Remarks
Proprietary Mozilla property.

String mozBorderRadiusTopLeft

Specifies the border radius of the top-left corner of the element.

Remarks
Proprietary Mozilla property.

String mozBorderRadiusTopRight

Specifies the border radius of the top-right corner of the element.

Remarks
Proprietary Mozilla property.

String mozBorderTopColors

Specifies one or more colors to use in a striping effect on the top border of the element.

Remarks
Proprietary Mozilla property.

String mozBorderRightColors

Specifies one or more colors to use in a striping effect on the right border of the element.

Remarks
Proprietary Mozilla property.

String mozBorderBottomColors

Specifies one or more colors to use in a striping effect on the bottom border of the element.

Remarks
Proprietary Mozilla property.

String mozBorderLeftColors

Specifies one or more colors to use in a striping effect on the left border of the element.

Remarks
Proprietary Mozilla property.

Number mozOpacity

Specifies the level of opacity for the element. Use a two-digit decimal.

Remarks
Proprietary Mozilla property.

String mozOutline

Mozilla-specific version of the outline property. Defines the properties for an outline drawn over the outer edge of an element.

Remarks
Proprietary Mozilla property.

String mozOutlineColor

Mozilla-specific version of the outline-color property that specifies the color for an outline. Specify either a color name or RGB color code.

Remarks
Proprietary Mozilla property.

String mozOutlineStyle

Mozilla-specific version of the outline-style property that specifies a style for an outline.

Remarks
Proprietary Mozilla property.

String mozOutlineWidth

Mozilla-specific version of the outline-width property that specifies the width of the outline.

Remarks
Proprietary Mozilla property.

String mozUserFocus

Specifies the behavior of the element when it receives focus.

Remarks
Proprietary Mozilla property.

String mozUserInput

Specifies whether or not the element has input focus.

Remarks
Proprietary Mozilla property.

String mozUserModify

Specifies if a user can change the contents of the element.

Remarks
Proprietary Mozilla property.

String mozUserSelect

Specifies the content selection behavior for the element.

Remarks
Proprietary Mozilla property.

String oLink

Specifies the value for the link variable.

Remarks
Opera only.

String oLinkSource

Specifies the source anchor for the element.

Remarks
Opera only.

Number orphans

Specifies the minimum number of lines of text that an element must have left at the bottom of a page for printing.

Availability

W3C

String outline

Defines the properties for an outline drawn over the outer edge of an element. Outlines differ from borders in that borders are drawn to the outside of the element.

To specify a thick, red, dashed outline, use the following syntax: .myoutlineclass {outline: thick red dashed;}.
Remarks
Use the outline property as a shortcut to typing out all of the individual outline properties separately. You can specify any valid value for a outline property as part of outline.
Availability

W3C

String outlineColor

Specifies the color for an outline. Specify either a color name or RGB color code.

Availability

W3C

String outlineStyle

Specifies a style for an outline.

Availability

W3C

String outlineWidth

Specifies the width of the outline.

Remarks
You can also specify a fixed pixel value for outline-width.
Availability

W3C

String overflow

Specifies how to handle content overflow of an element if the content does not fit within the predefined boundaries of the element.

Availability

W3C

String overflowX

Specifies how to handle content overflow of an element if the content is too wide for the element.

String overflowY

Specifies how to handle content overflow of an element if the content is too tall for the element.

String padding

Specifies the amount of padding space between the content of an element and its border.

To specify a padding that is 10px wide on the top and left and 5px wide on the bottom and right, use the following syntax: body {padding: 10px 5px 5px 10px;}.
Remarks

Use the padding property as a shortcut to typing out all of the individual padding properties separately. You can specify any valid value for a padding property as part of padding.

You can specify up to four different widths for the amound of padding for an element.

  • For padding that is the same on all four sides, specify a single value.
  • For padding that is different on the top/bottom and left/right sides, specify two values with the top/bottom value first.
  • For padding that is different on the top, left/right, and bottom sides, specify three values with the top value first, followed by the left/right and then bottom values.
  • For padding with four different widths, specify four values in the order of top, right, bottom, and left.
Availability

W3C

String paddingBottom

Specifies the amount of padding (in pixels, points, or a percentage) at the bottom of an element.

Availability

W3C

String paddingLeft

Specifies the amount of padding (in pixels, points, or a percentage) for the left side of an element.

Availability

W3C

String paddingRight

Specifies the amount of padding (in pixels, points, or a percentage) for the right side of an element.

Availability

W3C

String paddingTop

Specifies the amount of padding (in pixels, points, or a percentage) at the top of an element.

Availability

W3C

String page

Specifies the type of page that the element should be displayed on.

Availability

W3C

String pageBreakAfter

Defines the way that a page breaks after the element when the page is printed.

Availability

W3C

String pageBreakBefore

Defines the way that a page breaks before the element when the page is printed.

Availability

W3C

String pageBreakInside

Specifies if an element should have a page break forced inside of the element or if page breaks should be avoided inside the element when the page is printed.

Availability

W3C

String pause

Specifies the number of seconds or milliseconds to pause before and/or after an element before playing audio content.

Remarks
Use the pause property as a shortcut to typing out all of the individual pause properties separately. You can specify any valid value for a pause property as part of pause.
Availability

W3C

String pauseAfter

Specifies the number of seconds or milliseconds to pause after an element before playing audio content.

Availability

W3C

String pauseBefore

Specifies the number of seconds or milliseconds to pause before an element before playing audio content.

Availability

W3C

String pitch

Specifies the frequency of a speaking voice for audio content.

Availability

W3C

String pitchRange

Specifies the range of the pitch of a speaking voice for audio content.

Availability

W3C

String playDuring

Specifies a sound to play while the content of the element is being spoken.

Availability

W3C

String position

Specifies how the element is positioned relative to the page or other elements.

String quotes

Specifies the style of quotation marks to use for embedded quotes.

Availability

W3C

String richness

Specifies the richness of the speaking voice for audio content.

Availability

W3C

String right

Specifies the x-coordinate for the position of the element relative to the right edge of the parent element or browser window.

Remarks
You can also specify a fixed pixel or percentage value for right.
Availability

W3C

String rubyAlign

Specifies the alignment for ruby text.

Remarks
IE only.

String rubyOverhang

Specifies the overhang of ruby text.

Remarks
IE only.

String rubyPosition

Specifies the position of ruby text.

Remarks
IE only.

String scrollbar3dLightColor

Specifies the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.

Remarks
IE only.

String scrollbarArrowColor

Specifies the color of the arrow of a scroll bar.

Remarks
IE only.

String scrollbarBaseColor

Specifies the color of the main elements of a scroll bar.

Remarks
IE only.

String scrollbarDarkshadowColor

Specifies the color of the gutter of a scroll bar.

Remarks
IE only.

String scrollbarFaceColor

Specifies the color of the scroll box and arrows of a scroll bar.

Remarks
IE only.

String scrollbarHighlightColor

Specifies the color of the top and left edges of the scroll box and arrows of a scroll bar.

Remarks
IE only.

String scrollbarShadowColor

Specifies the color of the bottom and right edges of the scroll box and arrows of a scroll bar.

Remarks
IE only.

String scrollbarTrackColor

Specifies the color of the track element of a scroll bar.

Remarks
IE only.

String size

Specifies the size and orientation of a page for print output.

To specify an 10x8 inch page that prints as landscape, use the following syntax: body {size: landscape 10in 8in;}.
Availability

W3C

String speak

Specifies how the content will be rendered as audio content.

Availability

W3C

String speak-header

For audio content, specifies whether table headers are spoken before every cell or just once until the header changes.

Availability

W3C

String speakNumeral

For audio content, specifies whether numerals are spoken as individual digits or continuous numbers.

Availability

W3C

String speakPunctuation

For audio content, specifies whether punctuation characters will be spoken or read as pauses.

Availability

W3C

String speechRate

For audio content, specifies the speaking rate.

Availability

W3C

Number stress

For audio content, specifies the number of inflection points in the voice.

Availability

W3C

String tableLayout

Specifies whether the layout of table rows, columns, and cells is fixed.

Availability

W3C

String textAlign

Specifies the horizontal alignment property for the element.

Availability

W3C

String textAlignLast

Specifies the alignment for the last or only line of text for the element.

Remarks
IE only.

String textDecoration

Specifies a text decoration for the element.

Availability

W3C

String textIndent

Specifies the amount (in pixels, points, or a percentage) that the first line of text should be indented in a block of content.

Availability

W3C

String textJustify

Specifies the alignment to use to justify the text for the element.

Remarks
IE only.

String textOverflow

Specifies whether to use ellipses (...) to indicate text overflow.

Remarks
IE only.

String textShadow

Defines the horizontal depth, vertical depth, blur, and color for a drop-shadow for text content in the element.

To specify a blue 5 pixel drop-shadow with a 5 pixel blur, use the following syntax: H1 {text-shadow: 5px 5px 5px blue;}.
Remarks
Specify the color before or after the depth and blur values. The first depth value corresponds to the number of pixels the shandow extends to the right. The second depth value corresponds to the number of pixels the shadow extends below the text. A third value corresponds to blur.
Availability

W3C

String textTransform

Specifies that the text for the element should be converted to the assigned case or format.

Availability

W3C

String textUnderlinePosition

Specifies the position of the underline text-decoration.

Remarks
IE only.

String top

Specifies the y-coordinate for the position of the element relative to the top edge of the parent element or browser window.

Remarks
You can also specify a fixed pixel or percentage value for top.
Availability

W3C

String unicodeBidi

Specifies that the text direction in the element may be overriden for multi-language support.

Availability

W3C

String verticalAlign

Specifies the vertical alignment property for the element.

Remarks
You can also specify a fixed pixel or percentage value for vertical-align.
Availability

W3C

String visibility

Specifies whether an element is visible or hidden.

Availability

W3C

String voiceFamily

Specifies the speaking voice for audio content.

Remarks
You can specify a specific voice name and/or a male, female, or child voice.
Availability

W3C

String volume

Specifies the sound volume for audio content.

Remarks
You can specify a number from 0-100 or a percentage to set the volume for this property.
Availability

W3C

String whiteSpace

Specifies how to handle white space characters for the element.

Availability

W3C

Number widows

Specifies the minimum number of lines of text that an element must have left at the top of a page for printing.

Availability

W3C

String width

Specifies the width (in pixels, points, or as a percentage) of the content of the element.

Remarks
width does not include the margins, padding, or borders of an element.
Availability

W3C

String wordBreak

Specifies line-breaking behavior between words in the content of the element.

Remarks
IE only.

String wordSpacing

Specifies the amount of space between words for the element text.

Availability

W3C

String wordWrap

Specifies line-breaking behavior for words that are longer than their container boundaries.

Remarks
IE only.

String writingMode

Specifies the direction and flow of content in the element.

Remarks
IE only.

Number zIndex

Specifies the stacking order of the element relative to other layers. A higher z-index value will place the element above layers with lower z-index values.

Availability

W3C

Number zoom

Specifies the magnification scale for the element.