Removing Bullets Numbers
suggest changeSometimes a list should not display bullets or numbers. list-style-type: none removes the marker, but the list’s default padding can leave an indent. Set that padding as well if the indent should go.
<ul>
<li>first item</li>
<li>second item</li>
</ul>
CSS
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
li {
margin: 0;
padding: 0;
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents