Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 641 Bytes

list-style-emoji.md

File metadata and controls

35 lines (28 loc) · 641 Bytes

Styling list bullets with emoji

There are at multiple ways how it can be done.

One of them is to use the ::before pseudo-element:

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

li::before {
    content: "✔ ";
}

li:nth-child(3n+4)::before {
    content: "🐶 ";
}

The HTML markup is basic:

<ul>
    <li>Arrange your photoshoots</li>
    <li>Automate appointments</li>
    <li>Reduce manual admin work</li>
    <li>Focus on your business</li>
</ul>

References: