Create custom bullet marker for UL list in HTML and CSS
Description
The following code shows how to create custom bullet marker for UL list.
Example
<html>
<head>
<style type="text/css" media="Screen">
ul {<!--from www. j ava 2 s . c om-->
margin-left: 0;
padding-left: 0;
}
ul li {
margin-left: 60px;
}
* .none {
list-style-type: none;
}
* .marker {
float: left;
margin-left: -60px;
width: 60px;
text-align: center;
}
</style>
</head>
<body>
<ul>
<li class="none"><span class="marker">–</span>A</li>
<li class="none"><span class="marker">–</span>B</li>
<li class="none"><span class="marker">–</span>C</li>
<li class="none"><span class="marker">–</span>D</li>
<li class="none"><span class="marker">–</span>E</li>
<li class="none"><span class="marker">–</span>F</li>
</ul>
</body>
</html>
</body>
</html>