So I wanted to make a list with checkmarks instead of bullet points. Therefore I decided to make a ::before pseudo-element like this:
ul{ list-style-type: none;}
li::before{
content: "\2713";
font-size: 1.2rem;
margin: 0 4px;}
While this actually works pretty well, I have the problem that once the text of the li wraps and goes on a new line, it won't align with the rest of the text (list) anymore, but would rather go on the next line under the checkmark (::before element).
Now, I already tried things like position: absolute; but that doesn't work either since the ::before element is taken out of the flow and will just go above the text of the list item. I have also tried text-indent on the li but all of this won't work. Also, since it is a ::before element and list-style-type is set to none; list-style-position: outside; won't work either.
So what do I have to do so that the text of my list item will align with the list once it wraps on a new line and doesn't go under the ::before ?