Aptana Studio ヘルプ > Reference > HTML DOM Level 2
aptana

HTMLStyleObject : Object
Return to: HTML DOM Level 2 index

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

Constructor Action IE Mozilla Netscape Opera Safari
HTMLStyleObject Constructor() : HTMLStyleObject
Reference to the inline CSS style for the element.
Show Details

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+
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+
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+
Specifies the URL for a background image for an element.
Show Details 4.0+ 1.0+ 4.0+ 4.0+ 1.0+
Specifies the position of a background image for an element.
Show Details 4.0+ 1.0+ 6.0+ 4.0+ 1.0+
Specifies the x-position of a background image for an element.
Show Details 5.0+ no no no no
Specifies the y-position of a background image for an element.
Show Details 5.0+ no no no no
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+
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+
Specifies a style for a bottom border.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+
Specifies the width of the bottom border.
Show Details 4.0+ 1.0+ 4.0+ 5.0+ 1.0+
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+
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+
Specifies a style for a left border.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+
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+
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+
Specifies a style for a right border.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+
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+
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+
Specifies a style for a top border.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.0+
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+
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+
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
Specifies the size of a character grid for the content of an element.
Show Details 5.5+ no no no no
Specifies the grid line value for the text content of an element.
Show Details 5.5+ no no no no
Specifies if the element text layout grid uses the line and/or char mode.
Show Details 5.5+ no no no no
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+
Specifies the URL to an image to use for list items.
Show Details 4.0+ 1.0+ 6.0+ 4.0+ 1.0+
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
Specifies the radius of the border around the element.
Show Details no 1.0+ 7.0+ no no
Specifies the border radius of the bottom-left corner of the element.
Show Details no 1.0+ 7.0+ no no
Specifies the border radius of the bottom-right corner of the element.
Show Details no 1.0+ 7.0+ no no
Specifies the border radius of the top-left corner of the element.
Show Details no 1.0+ 7.0+ no no
Specifies the border radius of the top-right corner of the element.
Show Details no 1.0+ 7.0+ no no
Specifies one or more colors to use in a striping effect on the top border of the element.
Show Details no 1.0+ 6.0+ no no
Specifies one or more colors to use in a striping effect on the right border of the element.
Show Details no 1.0+ 7.0+ no no
Specifies one or more colors to use in a striping effect on the bottom border of the element.
Show Details no 1.0+ 7.0+ no no
Specifies one or more colors to use in a striping effect on the left border of the element.
Show Details no 1.0+ 7.0+ no no
mozOpacity : Number
Specifies the level of opacity for the element. Use a two-digit decimal.
Show Details no 1.0+ 7.0+ no no
mozOutline : String
Mozilla-specific version of the outline property. Defines the properties for an outline drawn over the outer edge of an element.
Show Details no no 6.0+ no no
Mozilla-specific version of the outline-color property that specifies the color for an outline. Specify either a color name or RGB color code.
Show Details no no 6.0+ no no
Mozilla-specific version of the outline-style property that specifies a style for an outline.
Show Details no no 6.0+ no no
Mozilla-specific version of the outline-width property that specifies the width of the outline.
Show Details no no 6.0+ no no
mozUserFocus : String
Specifies the behavior of the element when it receives focus.
Show Details no no 6.0+ no no
mozUserInput : String
Specifies whether or not the element has input focus.
Show Details no no 6.0+ no no
mozUserModify : String
Specifies if a user can change the contents of the element.
Show Details no no 6.0+ no no
mozUserSelect : String
Specifies the content selection behavior for the element.
Show Details no no 6.0+ no no
oLink : String
Specifies the value for the link variable.
Show Details no no no 7.0+ no
oLinkSource : String
Specifies the source anchor for the element.
Show Details no no no 7.0+ no
orphans : Number
Specifies the minimum number of lines of text that an element must have left at the bottom of a page for printing.
Show Details no 1.0+ 6.0+ 7.0+ no
outline : String
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.
Show Details no no 6.0+ 7.0+ 1.2+
outlineColor : String
Specifies the color for an outline. Specify either a color name or RGB color code.
Show Details no no 6.0+ 7.0+ 1.2+
outlineStyle : String
Specifies a style for an outline.
Show Details no no 6.0+ 7.0+ 1.2+
outlineWidth : String
Specifies the width of the outline.
Show Details no no 6.0+ 7.0+ 1.2+
overflow : String
Specifies how to handle content overflow of an element if the content does not fit within the predefined boundaries of the element.
Show Details 4.0+ 1.0+ 4.0+ 4.0+ 1.0+
overflowX : String
Specifies how to handle content overflow of an element if the content is too wide for the element.
No Details 6.0+ no no no no
overflowY : String
Specifies how to handle content overflow of an element if the content is too tall for the element.
No Details 6.0+ no no no no
padding : String
Specifies the amount of padding space between the content of an element and its border.
Show Details 4.0+ 1.0+ 4.0+ 4.0+ 1.0+
paddingBottom : String
Specifies the amount of padding (in pixels, points, or a percentage) at the bottom of an element.
Show Details 4.0+ 1.0+ 4.0+ 4.0+ 1.0+
paddingLeft : String
Specifies the amount of padding (in pixels, points, or a percentage) for the left side of an element.
Show Details 4.0+ 1.0+ 4.0+ 4.0+ 1.0+
paddingRight : String
Specifies the amount of padding (in pixels, points, or a percentage) for the right side of an element.
Show Details 4.0+ 1.0+ 4.0+ 4.0+ 1.0+
paddingTop : String
Specifies the amount of padding (in pixels, points, or a percentage) at the top of an element.
Show Details 4.0+ 1.0+ 4.0+ 4.0+ 1.0+
page : String
Specifies the type of page that the element should be displayed on.
Show Details 5.5+ no no no no
Defines the way that a page breaks after the element when the page is printed.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.2+
Defines the way that a page breaks before the element when the page is printed.
Show Details 4.0+ 1.0+ 6.0+ 7.0+ 1.2+
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.
Show Details no 1.0+ 6.0+ 7.0+ no
pause : String
Specifies the number of seconds or milliseconds to pause before and/or after an element before playing audio content.
Show Details no no no no no
pauseAfter : String
Specifies the number of seconds or milliseconds to pause after an element before playing audio content.
Show Details no no no no no
pauseBefore : String
Specifies the number of seconds or milliseconds to pause before an element before playing audio content.
Show Details no no no no no
pitch : String
Specifies the frequency of a speaking voice for audio content.
Show Details no no no no no
pitchRange : String
Specifies the range of the pitch of a speaking voice for audio content.
Show Details no no no no no
playDuring : String
Specifies a sound to play while the content of the element is being spoken.
Show Details no no no no no
position : String
Specifies how the element is positioned relative to the page or other elements.
No Details 4.0+ 1.0+ 4.0+ 4.0+ 1.0+
quotes : String
Specifies the style of quotation marks to use for embedded quotes.
Show Details no 1.0+ 6.0+ 7.0+ no
richness : String
Specifies the richness of the speaking voice for audio content.
Show Details no no no no no
right : String
Specifies the x-coordinate for the position of the element relative to the right edge of the parent element or browser window.
Show Details 4.0+ 1.0+ 6.0+ 4.0+ 1.0+
rubyAlign : String
Specifies the alignment for ruby text.
Show Details 5.0+ no no no no
rubyOverhang : String
Specifies the overhang of ruby text.
Show Details 5.0+ no no no no
rubyPosition : String
Specifies the position of ruby text.
Show Details 5.0+ no no no no
Specifies the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.
Show Details 5.5+ no no no no
Specifies the color of the arrow of a scroll bar.
Show Details 5.5+ no no no no
Specifies the color of the main elements of a scroll bar.
Show Details 5.5+ no no no no
Specifies the color of the gutter of a scroll bar.
Show Details 5.5+ no no no no
Specifies the color of the scroll box and arrows of a scroll bar.
Show Details 5.5+ no no no no
Specifies the color of the top and left edges of the scroll box and arrows of a scroll bar.
Show Details 5.5+ no no no no
Specifies the color of the bottom and right edges of the scroll box and arrows of a scroll bar.
Show Details 5.5+ no no no no
Specifies the color of the track element of a scroll bar.
Show Details 5.5+ no no no no
size : String
Specifies the size and orientation of a page for print output.
Show Details no 1.0+ 6.0+ 7.0+ no
speak : String
Specifies how the content will be rendered as audio content.
Show Details no no no no no
speak-header : String
For audio content, specifies whether table headers are spoken before every cell or just once until the header changes.
Show Details no no no no no
speakNumeral : String
For audio content, specifies whether numerals are spoken as individual digits or continuous numbers.
Show Details no no no no no
For audio content, specifies whether punctuation characters will be spoken or read as pauses.
Show Details no no no no no
speechRate : String
For audio content, specifies the speaking rate.
Show Details no no no no no
stress : Number
For audio content, specifies the number of inflection points in the voice.
Show Details no no no no no
tableLayout : String
Specifies whether the layout of table rows, columns, and cells is fixed.
Show Details 5.0+ 1.0+ 6.0+ 7.0+ 1.0+
textAlign : String
Specifies the horizontal alignment property for the element.
Show Details 3.0+ 1.0+ 4.0+ 4.0+ 1.0+
textAlignLast : String
Specifies the alignment for the last or only line of text for the element.
Show Details 5.0+ no no no no
Specifies a text decoration for the element.
Show Details 4.0+ 1.0+ 4.0+ 6.0+ 1.0+
textIndent : String
Specifies the amount (in pixels, points, or a percentage) that the first line of text should be indented in a block of content.
Show Details 3.0+ 1.0+ 4.0+ 4.0+ 1.0+
textJustify : String
Specifies the alignment to use to justify the text for the element.
Show Details 5.0+ no no no no
textOverflow : String
Specifies whether to use ellipses (...) to indicate text overflow.
Show Details 5.0+ no no no no
textShadow : String
Defines the horizontal depth, vertical depth, blur, and color for a drop-shadow for text content in the element.
Show Details no no no no 1.1+
textTransform : String
Specifies that the text for the element should be converted to the assigned case or format.
Show Details 4.0+ 1.0+ 4.0+ 6.0+ 1.0+
Specifies the position of the underline text-decoration.
Show Details 6.0+ no no no no
top : String
Specifies the y-coordinate for the position of the element relative to the top edge of the parent element or browser window.
Show Details 4.0+ 1.0+ 4.0+ 6.0+ 1.0+
unicodeBidi : String
Specifies that the text direction in the element may be overriden for multi-language support.
Show Details 5.0+ 1.0+ 6.0+ no no
verticalAlign : String
Specifies the vertical alignment property for the element.
Show Details 4.0+ 1.0+ 4.0+ 4.0+ 1.0+
visibility : String
Specifies whether an element is visible or hidden.
Show Details 4.0+ 1.0+ 4.0+ 4.0+ 1.0+
voiceFamily : String
Specifies the speaking voice for audio content.
Show Details no no no no no
volume : String
Specifies the sound volume for audio content.
Show Details no no no no no
whiteSpace : String
Specifies how to handle white space characters for the element.
Show Details 5.5+ 1.0+ 4.0+ 4.0+ 1.0+
widows : Number
Specifies the minimum number of lines of text that an element must have left at the top of a page for printing.
Show Details no 1.0+ 6.0+ 7.0+ no
width : String
Specifies the width (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+
wordBreak : String
Specifies line-breaking behavior between words in the content of the element.
Show Details 6.0+ no no no no
wordSpacing : String
Specifies the amount of space between words for the element text.
Show Details 6.0+ 1.0+ 4.0+ 4.0+ 1.0+
wordWrap : String
Specifies line-breaking behavior for words that are longer than their container boundaries.
Show Details 6.0+ no no no no
writingMode : String
Specifies the direction and flow of content in the element.
Show Details 6.0+ no no no no
zIndex : Number
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.
Show Details 4.0+ 1.0+ 4.0+ 4.0+ 1.0+
zoom : Number
Specifies the magnification scale for the element.
No Details 5.5+ no no no no
text_javascript aptana_docs