Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
|---|---|---|---|---|---|---|---|---|
|
HTMLStyleObject Constructor() : HTMLStyleObject
Reference to the inline CSS style for the element.
|
Show Details | |||||||
HTMLStyleObject() : HTMLStyleObjectReference to the inline CSS style for the element. Returns
|
||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|---|
|
accelerator
: String
Specifies whether or not the element has an accelerator key, which is a shortcut for selecting the element.
|
Show Details | 5.5+ | no | no | no | no |
|
||||||
|
azimuth
: String
Specifies the speaker balance for audio content.
|
Show Details | no | no | no | no | no |
|
||||||
|
background
: String
Defines the background properties for an element.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
backgroundAttachment
: String
Specifies whether or not the background image is fixed or scrollable as a user scrolls the document.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 4.0+ | 1.0+ |
|
||||||
|
backgroundColor
: String
Specifies the background color for the element. Specify either a color name or RGB color code.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
backgroundImage
: String
Specifies the URL for a background image for an element.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
backgroundPosition
: String
Specifies the position of a background image for an element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 4.0+ | 1.0+ |
|
||||||
|
backgroundPositionX
: String
Specifies the x-position of a background image for an element.
|
Show Details | 5.0+ | no | no | no | no |
|
||||||
|
backgroundPositionY
: String
Specifies the y-position of a background image for an element.
|
Show Details | 5.0+ | no | no | no | no |
|
||||||
|
backgroundRepeat
: String
Specifies how a background image repeats for an element.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
border
: String
Defines the border properties for an element.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 5.0+ | 1.0+ |
|
||||||
|
borderBottom
: String
Defines the properties for the bottom border for the element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 4.0+ | 1.0+ |
|
||||||
|
borderBottomColor
: String
Specifies the color for a bottom border. Specify either a color name or RGB color code.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
borderBottomStyle
: String
Specifies a style for a bottom border.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
borderBottomWidth
: String
Specifies the width of the bottom border.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 5.0+ | 1.0+ |
|
||||||
|
borderCollapse
: String
Specifies whether the borders for an element are collapsed or separated.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 5.0+ | 1.2+ |
|
||||||
|
borderColor
: String
Specifies the color for the borders for an element. Specify either a color name or RGB color code.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
borderLeft
: String
Defines the properties for the left border for the element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 4.0+ | 1.0+ |
|
||||||
|
borderLeftColor
: String
Specifies the color for a left border. Specify either a color name or RGB color code.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
borderLeftStyle
: String
Specifies a style for a left border.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
borderLeftWidth
: String
Specifies the width of the left border.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 5.0+ | 1.0+ |
|
||||||
|
borderRight
: String
Defines the properties for the right border for the element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 4.0+ | 1.0+ |
|
||||||
|
borderRightColor
: String
Specifies the color for a right border. Specify either a color name or RGB color code.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
borderRightStyle
: String
Specifies a style for a right border.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
borderRightWidth
: String
Specifies the width of the right border.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 5.0+ | 1.0+ |
|
||||||
|
borderSpacing
: String
Specifies the number of pixels between the border and its contents.
|
Show Details | no | 1.0+ | 6.0+ | 5.0+ | 1.2+ |
|
||||||
|
borderStyle
: String
Specifies a style for a border.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 5.0+ | 1.0+ |
|
||||||
|
borderTop
: String
Defines the properties for the top border for the element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 4.0+ | 1.0+ |
|
||||||
|
borderTopColor
: String
Specifies the color for a top border. Specify either a color name or RGB color code.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
borderTopStyle
: String
Specifies a style for a top border.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
borderTopWidth
: String
Specifies the width of the top border.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 5.0+ | 1.0+ |
|
||||||
|
borderWidth
: String
Specifies the width of the border.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 5.0+ | 1.0+ |
|
||||||
|
bottom
: String
Specifies the y-coordinate for the position of the element relative to the bottom edge of the parent element or browser window.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 5.0+ | 1.0+ |
|
||||||
|
captionSide
: String
Specifies the position of a caption for the element.
|
Show Details | no | 1.0+ | 6.0+ | 6.0+ | 1.0+ |
|
||||||
|
clear
: String
Specifies the position of the element relative to a floating object on the page.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 5.0+ | 1.0+ |
|
||||||
|
clip
: String
Specifies the x- and y-coordinates (in pixels) for the clipping rectangle around the element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 5.0+ | 1.0+ |
|
||||||
|
color
: String
Specifies the color of the text for the element. Specify either a color name or RGB color code.
|
Show Details | 3.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
content
: String
Specifies the content to insert before or after the element.
|
Show Details | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
counterIncrement
: String
Specifies a name of a counter and how much to increment the counter by.
|
Show Details | no | no | no | 7.0+ | no |
|
||||||
|
counterReset
: String
Resets a counter to the specified value.
|
Show Details | no | no | no | 7.0+ | no |
|
||||||
|
cue
: String
Defines the properties for an aural cue before or after an element.
|
Show Details | no | no | no | no | no |
|
||||||
|
cueBefore
: String
Defines the properties for an aural cue before an element.
|
Show Details | no | no | no | no | no |
|
||||||
|
cueAfter
: String
Defines the properties for an aural cue after an element.
|
Show Details | no | no | no | no | no |
|
||||||
|
cursor
: String
Specifies which cursor to display when a user mouses over the element.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 7.0+ | 1.2+ |
|
||||||
|
direction
: String
Specifies the text direction for the element.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | no | 1.0+ |
|
||||||
|
display
: String
Specifies how to display the element.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 5.0+ | 1.0+ |
|
||||||
|
elevation
: String
Specifies the elevation of the element. You can either one of the relative elevations or specify an angle in degrees.
|
Show Details | no | no | no | no | no |
|
||||||
|
emptyCells
: String
Specifies whether to show or hide borders for empty table cells.
|
Show Details | no | 1.0+ | 6.0+ | 5.0+ | 1.2+ |
|
||||||
|
filter
: String
Specifies a filter for the element to render and any parameters that the filter takes. You can specify multiple filters.
|
Show Details | 4.0+ | no | no | no | no |
|
||||||
|
float
: String
Specifies if an element should float towards the left or right margin of its parent element or web browser.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 6.0+ | 1.0+ |
|
||||||
|
font
: String
Defines the properties for the font for the element.
|
Show Details | 3.0+ | 1.0+ | 4.0+ | 6.0+ | 1.0+ |
|
||||||
|
fontFamily
: String
Specifies the font face for the element.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
fontSize
: String
Specifies either the explicit or relative size of the font compared to the base font size.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
fontSizeAdjust
: String
Specifies the adjustment to make in font size if an explicitly specified font is unavailable.
|
Show Details | no | no | no | no | no |
|
||||||
|
fontStretch
: String
Specifies how a font should be condensed or stretched.
|
Show Details | no | no | no | no | no |
|
||||||
|
fontStyle
: String
Specifies a style for a font (e.g. italic).
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
fontVariant
: String
Specifies a variation for a font (e.g. small-caps).
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
fontWeight
: String
Specifies the weight of a font (e.g. bold).
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
height
: String
Specifies the height (in pixels, points, or as a percentage) of the content of the element.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
imeMode
: String
Specifies the state of the Input Method Editor (IME) for the element, which allows users to enter and edit Chinese, Japanese,
and Korean characters.
|
Show Details | 5.5+ | no | no | no | no |
|
||||||
|
layoutFlow
: String
Specifies the flow direction for the content of the element.
|
Show Details | 5.5+ | no | no | no | no |
|
||||||
|
layoutGrid
: String
Defines the set of layout-grid properties for an element.
|
Show Details | 5.5+ | no | no | no | no |
|
||||||
|
layoutGridChar
: String
Specifies the size of a character grid for the content of an element.
|
Show Details | 5.5+ | no | no | no | no |
|
||||||
|
layoutGridLine
: String
Specifies the grid line value for the text content of an element.
|
Show Details | 5.5+ | no | no | no | no |
|
||||||
|
layoutGridMode
: String
Specifies if the element text layout grid uses the line and/or char mode.
|
Show Details | 5.5+ | no | no | no | no |
|
||||||
|
layoutGridType
: String
Specifies the type of layout grid for the content of an element.
|
Show Details | 5.5+ | no | no | no | no |
|
||||||
|
left
: String
Specifies the x-coordinate for the position of the element relative to the left edge of the parent element or browser window.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 5.0+ | 1.0+ |
|
||||||
|
letterSpacing
: String
Specifies the amount of space (in points or pixels) between letters in the text of the element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 4.0+ | 1.0+ |
|
||||||
|
lineBreak
: String
Specifies line-breaking rules for Japanese text.
|
Show Details | 5.5+ | no | no | no | no |
|
||||||
|
lineHeight
: String
Specifies line height of text in multiline elements, such as paragraphs.
|
Show Details | 3.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
listStyle
: String
Defines the properties for the list style for a list element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 4.0+ | 1.0+ |
|
||||||
|
listStyleImage
: String
Specifies the URL to an image to use for list items.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 4.0+ | 1.0+ |
|
||||||
|
listStylePosition
: String
Specifies the position of the bullet or number for a list.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 4.0+ | 1.0+ |
|
||||||
|
listStyleType
: String
Specifies the position of the bullet or number for a list.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
margin
: String
Defines the widths (in pixels, points, or a percentage) for the margins for the element.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
marginBottom
: String
Specifies the width (in pixels, points, or a percentage) for the bottom margin of an element.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
marginLeft
: String
Specifies the width (in pixels, points, or a percentage) for the left margin of an element.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
marginRight
: String
Specifies the width (in pixels, points, or a percentage) for the right margin of an element.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
marginTop
: String
Specifies the width (in pixels, points, or a percentage) for the top margin of an element.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 4.0+ | 1.0+ |
|
||||||
|
markerOffset
: String
Specifies the width (in pixels or points) between the marker box of an element and the surrounding box of its parent element.
|
Show Details | no | no | no | no | no |
|
||||||
|
marks
: String
Specifies if cross or crop marks should appear outside of the element on a printed page.
|
Show Details | no | no | no | no | no |
|
||||||
|
maxHeight
: String
Specifies the maximum height that an element may be.
|
Show Details | no | 1.0+ | 6.0+ | 7.0+ | 1.3+ |
|
||||||
|
maxWidth
: String
Specifies the maximum width that an element may be.
|
Show Details | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
minHeight
: String
Specifies the minimum height that an element may be.
|
Show Details | no | 1.0+ | 6.0+ | 7.0+ | 1.3+ |
|
||||||
|
minWidth
: String
Specifies the minimum width that an element may be.
|
Show Details | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
|
mozBinding
: String
Specifies the URL of an XBL file to bind to the element.
|
Show Details | no | no | 6.0+ | no | no |
|
||||||
|
mozBorderRadius
: String
Specifies the radius of the border around the element.
|
Show Details | no | 1.0+ | |||
