CSS2 Test Suite: 8.2 Margins, padding, borders
[index page] [section] [Previous] [Next] [Specification]
The style declarations contained within this page:
ul {background: green;
margin: 12px 12px 12px 12px;padding: 3px 3px 3px 3px;}
li{color: black; background: gray;
margin: 12px 12px 12px 12px; padding: 12px 0px 12px 12px;
list-style: none;}
li.withborder {border-color: black;
border-style: dashed; border-width: medium;}
- First element of list; there should be 12px of margin space between this list item and the next
- Second element of list, which is much longer (in terms of content) in order to illustrate line wrapping and the effects of margins, padding, and borders in such a situation. If your user agent's viewing area is too wide for this list item to be line-wrapped, please narrow the viewport until some line-wrapping is seen.
[index page] [section] [Previous] [Next] [Specification]