unordered list css code example
Example 1: html ul types
<ul style="list-style-type:disk">
<li>Disk</li>
</ul>
<ul style="list-style-type:circle">
<li>Circle</li>
</ul>
<ul style="list-style-type:square">
<li>Square</li>
</ul>
Example 2: css style list
/* Choose the symbol, image or numeric for the bullet points on the list: */
/* SYMBOLS and NUMERICS */
ul {
list-style-type: square;
}
ol {
list-style-type:decimal;
}
/* IMAGES: */
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;
}
/* Define the color of each bullet point on the list */
ul {
list-style: none; /* Remove list bullets */
padding: 0;
margin: 0;
}
li {
padding-left: 16px;
}
li:before {
content: "•"; /* Insert content that looks like bullets */
padding-right: 8px;
color: blue;
}
Example 3: html unordered list
<ul>
<lh>ul Header</lh>
<li>Item One</li>
<li>Item Two</li>
<li>Item Thre</li>
</ul>
Example 4: bullet list html
<ul>
<li>Eggs</li>
<li>Pancakes</li>
<li>Jelly</li>
</ul>