Styling Lists
list-style-type changes the marker (disc, circle, square, decimal, lower-roman, none). list-style-position decides whether markers sit inside or outside the text block. The ::marker pseudo-element styles the marker itself.
To build a menu from a list, remove the bullets and padding: list-style: none; padding: 0; margin: 0;.
Example
<style>
ul.sq { list-style-type: square; }
ol.rom { list-style-type: upper-roman; }
li::marker { color: #e11d48; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: 6px 10px; border-bottom: 1px solid #cbd5e1; }
</style>
<ul class="sq"><li>Square</li><li>Bullets</li></ul>
<ol class="rom"><li>Roman</li><li>Numbers</li></ol>
<ul class="plain"><li>No bullets</li><li>Divider list</li></ul>Exercise
Remove the bullets from the list.
ul { list-style-type: ; }
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.