I want to display an icon at the end of each row. I am trying to solve this using flexbox but I don't understand how justify-self works.
ul {
list-style-type: none;
}
div {
display:flex;
}
div:first-child {
justify-self: flex-start;
}
div:last-child {
justify-self: flex-end;
}
<section>
<ul>
<li>
<div>
<p>I want an icon at the end</p>
<i>ICON</i>
</div>
</li>
<li>
<div>
<p>but I dont know how</p>
<i>ICON</i>
</div>
</li>
</ul>
</section>