The Style object represents an individual style statement. The Style object
can be accessed from the document or from the elements to which that style is
applied.
Property |
Description |
IE |
F |
O |
W3C |
border |
Sets all properties for the four borders in one |
4 |
1 |
9 |
Yes |
borderBottom |
Sets all properties for the bottom border in one |
4 |
1 |
9 |
Yes |
borderBottomColor |
Sets the color of the bottom border |
4 |
1 |
9 |
Yes |
borderBottomStyle |
Sets the style of the bottom border |
4 |
1 |
9 |
Yes |
borderBottomWidth |
Sets the width of the bottom border |
4 |
1 |
9 |
Yes |
borderColor |
Sets the color of all four borders (can have up to four
colors) |
4 |
1 |
9 |
Yes |
borderLeft |
Sets all properties for the left border in one |
4 |
1 |
9 |
Yes |
borderLeftColor |
Sets the color of the left border |
4 |
1 |
9 |
Yes |
borderLeftStyle |
Sets the style of the left border |
4 |
1 |
9 |
Yes |
borderLeftWidth |
Sets the width of the left border |
4 |
1 |
9 |
Yes |
borderRight |
Sets all properties for the right border in one |
4 |
1 |
9 |
Yes |
borderRightColor |
Sets the color of the right border |
4 |
1 |
9 |
Yes |
borderRightStyle |
Sets the style of the right border |
4 |
1 |
9 |
Yes |
borderRightWidth |
Sets the width of the right border |
4 |
1 |
9 |
Yes |
borderStyle |
Sets the style of all four borders (can have up to four
styles) |
4 |
1 |
9 |
Yes |
borderTop |
Sets all properties for the top border in one |
4 |
1 |
9 |
Yes |
borderTopColor |
Sets the color of the top border |
4 |
1 |
9 |
Yes |
borderTopStyle |
Sets the style of the top border |
4 |
1 |
9 |
Yes |
borderTopWidth |
Sets the width of the top border |
4 |
1 |
9 |
Yes |
borderWidth |
Sets the width of all four borders (can have up to four
widths) |
4 |
1 |
9 |
Yes |
margin |
Sets the margins of an element (can have up to four values) |
4 |
1 |
9 |
Yes |
marginBottom |
Sets the bottom margin of an element |
4 |
1 |
9 |
Yes |
marginLeft |
Sets the left margin of an element |
4 |
1 |
9 |
Yes |
marginRight |
Sets the right margin of an element |
4 |
1 |
9 |
Yes |
marginTop |
Sets the top margin of an element |
4 |
1 |
9 |
Yes |
outline |
Sets all outline properties in one |
5M |
1 |
9 |
Yes |
outlineColor |
Sets the color of the outline around an element |
5M |
1 |
9 |
Yes |
outlineStyle |
Sets the style of the outline around an element |
5M |
1 |
9 |
Yes |
outlineWidth |
Sets the width of the outline around an element |
5M |
1 |
9 |
Yes |
padding |
Sets the padding of an element (can have up to four values) |
4 |
1 |
9 |
Yes |
paddingBottom |
Sets the bottom padding of an element |
4 |
1 |
9 |
Yes |
paddingLeft |
Sets the left padding of an element |
4 |
1 |
9 |
Yes |
paddingRight |
Sets the right padding of an element |
4 |
1 |
9 |
Yes |
paddingTop |
Sets the top padding of an element |
4 |
1 |
9 |
Yes |
Property |
Description |
IE |
F |
O |
W3C |
clear |
Sets on which sides of an element other floating
elements are not allowed |
4 |
1 |
9 |
Yes |
clip |
Sets the shape of an element |
4 |
1 |
9 |
Yes |
content |
Sets meta-information |
5M |
1 |
|
Yes |
counterIncrement |
Sets a list of counter names, followed by an integer. The
integer indicates by how much the counter is incremented for every
occurrence of the element. The default is 1 |
5M |
1 |
|
Yes |
counterReset |
Sets a list of counter names, followed by an integer. The
integer gives the value that the counter is set to on each occurrence of the
element. The default is 0 |
5M |
1 |
|
Yes |
cssFloat |
Sets where an image or a text will appear (float) in
another element |
5M |
1 |
9 |
Yes |
cursor |
Sets the type of cursor to be displayed |
4 |
1 |
9 |
Yes |
direction |
Sets the text direction of an element |
5 |
1 |
9 |
Yes |
display |
Sets how an element will be displayed |
4 |
1 |
9 |
Yes |
height |
Sets the height of an element |
4 |
1 |
9 |
Yes |
markerOffset |
Sets the distance between the nearest border edges of a
marker box and its principal box |
5M |
1 |
|
Yes |
marks |
Sets whether cross marks or crop marks should be rendered
just outside the page box edge |
5M |
1 |
|
Yes |
maxHeight |
Sets the maximum height of an element |
5M |
1 |
9 |
Yes |
maxWidth |
Sets the maximum width of an element |
5M |
1 |
9 |
Yes |
minHeight |
Sets the minimum height of an element |
5M |
1 |
9 |
Yes |
minWidth |
Sets the minimum width of an element |
5M |
1 |
9 |
Yes |
overflow |
Specifies what to do with content that
does not fit in an element box |
4 |
1 |
9 |
Yes |
verticalAlign |
Sets the vertical alignment of content in an element |
4 |
1 |
No |
Yes |
visibility |
Sets whether or not an element should be visible |
4 |
1 |
9 |
Yes |
width |
Sets the width of an element |
4 |
1 |
9 |
Yes |
Property |
Description |
IE |
F |
O |
W3C |
color |
Sets the color of the text |
4 |
1 |
9 |
Yes |
font |
Sets all font properties in one |
4 |
1 |
9 |
Yes |
fontFamily |
Sets the font of an element |
4 |
1 |
9 |
Yes |
fontSize |
Sets the font-size of an element |
4 |
1 |
9 |
Yes |
fontSizeAdjust |
Sets/adjusts the size of a text |
5M |
1 |
No |
Yes |
fontStretch |
Sets how to condense or stretch a font |
5M |
No |
No |
Yes |
fontStyle |
Sets the font-style of an element |
4 |
1 |
9 |
Yes |
fontVariant |
Displays text in a small-caps font |
4 |
1 |
9 |
Yes |
fontWeight |
Sets the boldness of the font |
4 |
1 |
9 |
Yes |
letterSpacing |
Sets the space between characters |
4 |
1 |
9 |
Yes |
lineHeight |
Sets the distance between lines |
4 |
1 |
9 |
Yes |
quotes |
Sets which quotation marks to use in a text |
5M |
1 |
|
Yes |
textAlign |
Aligns the text |
4 |
1 |
9 |
Yes |
textDecoration |
Sets the decoration of a text |
4 |
1 |
9 |
Yes |
textIndent |
Indents the first line of text |
4 |
1 |
9 |
Yes |
textShadow |
Sets the shadow effect of a text |
5M |
1 |
|
Yes |
textTransform |
Sets capitalization effect on a text |
4 |
1 |
9 |
Yes |
unicodeBidi |
|
5 |
1 |
|
Yes |
whiteSpace |
Sets how to handle line-breaks and white-space in a text |
4 |
1 |
9 |
Yes |
wordSpacing |
Sets the space between words in a text |
6 |
1 |
9 |
Yes |