To get the triangle aligned with the text and with the :after
selector this is the solution.
(João Mosmann put me on the right path with this answer)
HTML :
<nav>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
</ul>
</nav>
CSS
li{
position:relative;
}
li:after{
content:" ";
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 10px solid red;
position:absolute;
top:5px;
margin-left:10px;
}
Check the FIDDLE