ul li a css code example
Example 1: html ul types
#Type 1
<ul style="list-style-type:disk">
<li>Disk</li>
</ul>
#Type 2
<ul style="list-style-type:circle">
<li>Circle</li>
</ul>
#Type 3
<ul style="list-style-type:square">
<li>Square</li>
</ul>
Example 2: css style list
ul {
list-style-type: square;
}
ol {
list-style-type:decimal;
}
li {
margin: 0;
padding: 15px 0 15px 60px;
list-style: none;
background-image: url("path_to_image");
background-repeat: no-repeat;
background-position: left center;
background-size: 30px;
}
ul {
list-style: none;
padding: 0;
margin: 0;
}
li {
padding-left: 16px;
}
li:before {
content: "•";
padding-right: 8px;
color: blue;
}