How can I use ::before and ::after elements on list items?
Let's say I have the following:
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
Is it possible to target a specific list item, like the last one, and add an ::after element only to that item?
ul li:nth-child(3)::after
{
content: "";
height: 10px;
width: 10px;
background: transparent;
border: 1px solid #ccc;
}