In this code, I want my ul to have a border line colored with the activate li color. For example, if the .activate element is gray, the ul border bottom must be gray. How can I accomplish this with the markup below?
<nav>
<ul>
<li class="gray"><a href="#">All</a></li>
<li class="blue"><a href="#">Item 1</a></li>
<li class="activate orange"><a href="#">Item 2</a></li>
<li class="green"><a href="#">Item 3</a></li>
</ul>
</nav>