HTML and CSS Reference
• The general characteristics of this property are supported by the type attribute for
the <ol> , <ul> , and <li> (X)HTML tags.
• CSS2 also included values, such as hebrew , cjk-ideographic , hiragana ,
katakana , hiragana-iroha , and katakana-iroha . These values were later
removed from the CSS 2.1 specification.
• CSS3 includes many more list-style-type values, such as arabic , binary ,
lower hexadecimal , mongolian , thai , ethiopic , hangul , norwegian , and
• Some CSS2 and most CSS3 values for this property are not supported in browsers.
This property sets a consistent margin on all four sides of the affected element.
margin: margin1 ... margin4 | inherit
where each margin value is either a length , percentage , auto , or inherit value. As a
shorthand form, it is possible to set the four margin values ( margin-top , margin-right ,
margin-bottom , and margin-left ) independently with this property:
A single value will be copied to all four margins. With two values, the first value will
specify the top and bottom margins, and the second value will specify the right and left
margins. If three values are specified, the first defines the top margin, the second defines the
left and right margins, and the third defines the bottom margin. Note that the unspecified
margin is inferred from the value defined for its opposite side. Lastly, all four values can
also be set in order of top, right, bottom, left.