I'm currently working on creating a CSS menu. My goal is to have a triangle of a specific size appear next to the container when the li
element has a class of active. To see an example, check out the following http://jsfiddle.net/hcabnettek/MeczJ/
While trying to adjust the left property, I noticed that the arrow moves to the end of the container but ends up sliding behind it. I've experimented with z-index and other solutions, but I can't seem to find the right answer.
I would really appreciate any help or guidance on this issue. Thank you in advance!
<nav>
<ul class="nav main-nav">
<li class="active">
<a href="/home">
<i class="icon-home"></i>
<h6>Home</h6>
<div class="items"></div>
</a>
</li>
</ul>
</nav>