I have a ul element with many li. Some lines (li) are highlighted with yellow background.
I want to add a triangle to the right border. This triangle should looks like an arrow that point to the text.
Something like this:
I tried to draw this triangle with right border, but this not giving me the right shape.
<ul>
<li>not highlighted</li>
<li>not highlighted</li>
<li class="highlighted">HIGHLIGHTED</li>
<li>not highlighted</li>
</ul>
<style>
.highlighted {
border-right: 20px solid red;
}
</style>
Please give a notice on the that one li can contain more the one line, so the height of the line can be changed. Arrow with fixed height (of one line) is good enough.
Is this possible? If yes, how?