Using some pseudo-object magic :after , you donβt even need to change html markup =)
You can try something like this:
nav ul li.selected:after{ content:''; float:right; width: 0; height: 0; border-top: 16px solid transparent; border-bottom: 16px solid transparent; border-right: 20px solid #ef5a29; }
or as i did in jsfiddle below:
nav ul li.selected a:after{ content:''; position:absolute; top:20px; right:0; width: 0; height: 0; border-top: 16px solid transparent; border-bottom: 16px solid transparent; border-right: 20px solid #ef5a29; }
Notice that I moved the indent from li and added display:block to a for this example.
here jsfiddle
source share