HTML and CSS Reference
In-Depth Information
Notes
• 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
somali .
• Some CSS2 and most CSS3 values for this property are not supported in browsers.
margin
This property sets a consistent margin on all four sides of the affected element.
Syntax
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:
1
margin-top
Border
Padding
2
4
Content
3
margin-bottom
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.
Search WWH ::




Custom Search