list style type css code example
Example 1: css list style
ul { list-style: square; }
ul { list-style: disc; }
ul { list-style: circle; }
ul { list-style: none; }
Example 2: no li style
list-style: none;
Example 3: 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;
}
Example 4: list-style-type
<ul style="list-style-type:none">
<li></li>
<li></li>
</ul>
Example 5: list-style-type flex
list-style applies to elements with display: list-item only – so by making your LI display: flex, you are removing the prerequisite for list-style to have any effect.