Changing unordered list markers to square : list style type « CSS « HTML / CSS






Changing unordered list markers to square

  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>Changing unordered list markers</title>
  <style type="text/css">
body { 
    line-height: 1.5em;
}
ul {
    list-style-type: square;
}
  </style>
  
</head>

<body>

  <ul>
    <li>Combine.</li>
    <li>Gradually.</li>
    <li>Place.</li>
    <li>Transfer.</li>
    <li>divide.</li>
  </ul>

</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.list-style-type: decimal; list-style-position: outside;
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