CSS and JavaScript Tags style property comparison table:
box labels and attributes control the text labels and attributes against the style labels and attributes against the color and background labels and attributes against the textual label and attribute
|
CSS syntax (case insensitive) |
JavaScript syntax (case sensitive) |
Border |
Border |
Border-bottom |
BorderBottom |
Border-bottom-color |
borderBottomColor |
Border-bottom-style |
borderBottomStyle |
Border-bottom-width |
borderBottomWidth |
Border-color |
BorderColor |
Border-left |
Borderleft |
Border-left-color |
borderLeftColor |
Border-left-style |
borderLeftStyle |
Border-left-width |
borderLeftWidth |
Border-right |
BorderRight |
Border-right-color |
borderRightColor |
Border-right-style |
borderRightStyle |
Border-right-width |
borderRightWidth |
Border-style |
BorderStyle |
Border-top |
BorderTop |
Border-top-color |
borderTopColor |
Border-top-style |
borderTopStyle |
Border-top-width |
borderTopWidth |
Border-width |
BorderWidth |
Clear |
Clear |
Float |
Floatstyle |
Margin |
Margin |
Margin-bottom |
MarginBottom |
Margin-left |
MarginLeft |
Margin-right |
MarginRight |
Margin-top |
MarginTop |
Padding |
Padding |
Padding-bottom |
Paddingbottom |
Padding-left |
Paddingleft |
Padding-right |
Paddingright |
Padding-top |
Paddingtop |
|
CSS syntax (case insensitive) |
JavaScript syntax (case sensitive) |
Background |
Background |
Background-attachment |
Backgroundattachment |
Background-color |
BackgroundColor |
Background-image |
BackgroundImage |
Background-position |
Backgroundposition |
Background-repeat |
Backgroundrepeat |
Color |
Color |
|
|
CSS syntax (case insensitive) |
JavaScript syntax (case sensitive) |
Display |
Display |
List-style-type |
listStyleType |
List-style-image |
listStyleImage |
List-style-position |
listStylePosition |
List-style |
ListStyle |
White-space |
Whitespace |
|
|
CSS syntax (case insensitive) |
JavaScript syntax (case sensitive) |
Font |
Font |
Font-family |
FontFamily |
Font-size |
FontSize |
Font-style |
FontStyle |
Font-variant |
Fontvariant |
Font-weight |
FontWeight |
|
|
CSS syntax (case insensitive) |
JavaScript syntax (case sensitive) |
Letter-spacing |
Letterspacing |
Line-break |
LineBreak |
Line-height |
Lineheight |
Text-align |
TextAlign |
Text-decoration |
TextDecoration |
Text-indent |
Textindent |
Text-justify |
Textjustify |
Text-transform |
Texttransform |
Vertical-align |
VerticalAlign |
CSS and JavaScript Tags style property comparison table