CSS List Styles Removing Bullets / Numbers


Example

Sometimes, a list should just not display any bullet points or numbers. In that case, remember to specify margin and padding.

<ul>
    <li>first item</li>
    <li>second item</li>
</ul>

CSS

ul {
    list-style-type: none;
}
li {
    margin: 0;
    padding: 0;
}