list-style-type: decimal; list-style-position: outside; : list style type « CSS « HTML / CSS






list-style-type: decimal; list-style-position: outside;

   
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>HTML/XHTML:  &raquo; List Properties Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<style type="text/css">

ul {list-style-image: url(../images/EX_flag.gif);}
.inside {background-color: yellow; list-style-type: upper-roman; list-style-position: inside;}
.outside {background-color: yellow; list-style-type: decimal; list-style-position: outside;}

</style>

</head>
<body>

<div class="content">
  <ul>
  <li>Item a</li>
  <li>Item b</li>
  </ul>
  <ol class="outside">
  <li>Item a</li>
  <li>Item b</li>
  </ol>
  <ol class="inside">
  <li>Item a</li>
  <li>Item b</li>
  </ol>
</div>
</body>
</html>

   
    
    
  








Related examples in the same category

1.The list-style-type Property
2.'list-style-type' Example
3.The table that follows lists the popularly supported values for ordered lists.
4.list-style-type: upper-greek
5.list-style-type: square
6.list-style-type: disc
7.list-style-type: circle
8.list-style-type: lower-roman
9.list-style-type: upper-latin
10.list-style-type: lower-latin
11.list-style-type: lower-greek
12.list-style-type: georgian
13.list-style-type: decimal
14.list-style-type: decimal-leading-zero
15.list-style-type: armenian
16.list style type: armenian
17.list style type: decimal and decimal leading zero
18.list style type: georgian
19.list style type: lower greek
20.list style type: lower latin
21.list style type: lower latin, upper latin
22.list style type: lower roman
23.list style type: lower roman upper roman
24.list style type: square, disc, circle
25.list style type: upper greek
26.list style type: upper latin
27.list style type: upper roman
28.list-style-type: upper-roman; list-style-position: inside;
29.Changing unordered list markers to square
30.UL list-style: none
31.UL list-style-type: disc;
32.list-style-type: none
33.Character marker for list
34.Entity marker
35.list-style-type: lower-latin/upper-latin
36.list-style-type: square/disc/circle