DEV Community

Richard
Richard

Posted on

Easily changing the icon on list items

Just a quick note, to change the way list items are styled and add cool icons (like emoji for example) do this:

.foo {
list-style: none; //removes old icons
}

then add a new icon with :before

.foo li::before {
content: '🏷 ';
}

Top comments (0)