Style HTML Object
The Style object supports the CSS properties listed in the following table. For more information about the properties, see this Microsoft Web site.
The Style object also supports the cssText property that is used to get or set all properties at once.
Properties
Property | Data type | Access | Description |
---|---|---|---|
backgroundAttachment | String | Read/write | Sets or retrieves how the background image is attached to the object within the document.
This has no effect on display. The property is parsed, but it is not used. |
backgroundImage | String | Read/write | Sets or retrieves the background image of the object. |
backgroundColor | String | Read/write | Sets or retrieves the color behind the content of the object. |
backgroundPosition | String | Read/write | Sets or retrieves the position of the background of the object. |
backgroundRepeat | String | Read/write | Sets or retrieves how the backgroundImage property of the object is tiled. |
borderBottomColor | String | Read/write | Sets or retrieves the color of the bottom border of the object. |
borderBottomStyle | String | Read/write | Sets or retrieves the style of the bottom border of the object. |
borderBottomWidth | String | Read/write | Sets or retrieves the width of the bottom border of the object. |
borderLeftColor | String | Read/write | Sets or retrieves the color of the left border of the object. |
borderLeftStyle | String | Read/write | Sets or retrieves the style of the left border of the object. |
borderLeftWidth | String | Read/write | Sets or retrieves the width of the left border of the object. |
borderRightColor | String | Read/write | Sets or retrieves the color of the right border of the object. |
borderRightStyle | String | Read/write | Sets or retrieves the style of the right border of the object. |
borderRightWidth | String | Read/write | Sets or retrieves the width of the right border of the object. |
borderTopColor | String | Read/write | Sets or retrieves the color of the top border of the object. |
borderTopStyle | String | Read/write | Sets or retrieves the style of the top border of the object. |
borderTopWidth | String | Read/write | Sets or retrieves the width of the top border of the object. |
clear | String | Read/write | 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. |
color | String | Read/write | Sets or retrieves the color of the text of the object. |
display | String | Read/write | Sets or retrieves whether the object is rendered. |
fontFamily | String | Read/write | Sets or retrieves the name of the font used for text in the object. |
fontSize | String | Read/write | Sets or retrieves a value that indicates the font size used for text in the object. |
fontStyle | String | Read/write | Sets or retrieves the font style of the object as italic, normal, or oblique. |
fontVariant | String | Read/write | Sets or retrieves whether the text of the object is in small capital letters. |
fontWeight | String | Read/write | Sets or retrieves the weight of the font of the object. |
height | String | Read/write | Sets or retrieves the height of the object. |
listStyleImage | String | Read/write | This has no effect on display. The property is parsed, but it is not used. |
listStylePosition | String | Read/write | Sets or retrieves a variable that indicates how the list-item marker is drawn relative to the content of the object. |
listStyleType | String | Read/write | Sets or retrieves the predefined type of the line-item marker for the object. |
marginBottom | String | Read/write | Sets or retrieves the height of the bottom margin of the object. |
marginLeft | String | Read/write | Sets or retrieves the width of the left margin of the object. |
marginRight | String | Read/write | Sets or retrieves the width of the right margin of the object. |
marginTop | String | Read/write | Sets or retrieves the height of the top margin of the object. |
paddingBottom | String | Read/write | Sets or retrieves the amount of space to insert between the bottom border of the object and the content. |
paddingLeft | String | Read/write | Sets or retrieves the amount of space to insert between the left border of the object and the content. |
paddingRight | String | Read/write | Sets or retrieves the amount of space to insert between the right border of the object and the content. |
paddingTop | String | Read/write | Sets or retrieves the amount of space to insert between the top border of the object and the content. |
styleFloat | String | Read/write | Sets or retrieves on which side of the object the text will flow. |
textAlign | String | Read/write | Sets or retrieves whether the text in the object is left-aligned, right-aligned, centered, or justified. |
textDecoration | String | Read/write | Sets or retrieves a value that indicates whether the text in the object has blink, line-through, overline, or underline decorations. |
textIndent | String | Read/write | Sets or retrieves the indentation of the first line of text in the object. |
textTransform | String | Read/write | Sets or retrieves the rendering of the text in the object.
This has no effect on display. The property is parsed, but it is not used. |
verticalAlign | String | Read/write | Sets or retrieves the vertical alignment of the object. |
visibility | String | Read/write | Sets or retrieves whether the content of the object is displayed. |
whiteSpace | String | Read/write | Sets or retrieves a value that indicates whether lines are automatically broken inside the object. |
width | String | Read/write | Sets or retrieves the width of the object. |
Requirements
Pocket PC: Windows Mobile Version 5.0
Smartphone: Windows Mobile Version 5.0
OS Versions: Windows CE 5.01 and later
See Also
Internet Explorer Mobile HTML Objects
Send Feedback on this topic to the authors