Working the Lists

CSS for this page

body  {margin: 40px 200px 40px 100px;}
UL, OL {list-style-position: inside;
border: medium dashed purple; padding: 5px ;} 
UL  {color: navy; list-style-image: url(listbul.gif);}
OL  {color: maroon;}
DL  {color: #000000;}
DT  {text-decoration: overline;}

The lists types are color-coded as follows:

  1. Ordered lists: maroon
  1. This is the default list-style-position for an ordered list.
  2. This is an example of list-style-position: outside; in an ordered list. The numeral was not visible until a rule of padding-left: 25px; was added.
  3. This is an example of list-style-position: inside; in an ordered list
  1. This is the same list as above with this list item added and padding-left: 25px; subtracted.
  2. This is the default list-style-position for an ordered list.
  3. This is an example of list-style-position: outside; in an ordered list. The numeral was not visible until a rule of padding-left: 25px; was added.
  4. This is an example of list-style-position: inside; in an ordered list
  1. This is the default list-style-position for an ordered list.
  2. This is an example of list-style-position: outside; in an ordered list. The numeral was not visible until a rule of padding-left: 25px; was added.
  3. This is an example of list-style-position: inside; in an ordered list
  1. This is the same list as above with this list item added and padding-left: 25px; subtracted.
  2. This is the default list-style-position for an ordered list.
  3. This is an example of list-style-position: outside; in an ordered list. The numeral was not visible until a rule of padding-left: 25px; was added.
  4. This is an example of list-style-position: inside; in an ordered list
Click here to go on to the next example which changes this rule:
UL, OL {list-style-position: inside; padding: 5px;
border: medium dashed purple;} 
to:
UL, OL {list-style-position: outside; padding: 5px;
border: medium dashed purple;}