Skip to content
Justice Tech School

Custom List Markers

list-style-type, list-style-image and ::marker change bullets. Use ::marker to colour or resize them without extra HTML.

Example
<style>
li::marker { color: #f59e0b; font-size: 1.2em } ul { list-style-type: square }
</style>
<ul><li>One</li><li>Two</li></ul>

Exercise

Style the bullet.

li:: { color: red }

Quiz Test

Which pseudo element styles bullets?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.