I currently have 2 links enclosed within 2 spans however when a link is clicked an dis active, the link has a class"linkActive". I need to apply a border for the span containing the active link how can one do this in css styles
HTML
<div>
<span class="sec">
<a>Link1</a>
</span>
<span class="sec">
<a class="linkActive">Link2</a>
</span>
</div>
I would like to apply border to span containing the anchor tag with link active class
i tried span.sec a.linkActive{
border-bottom: 3px solid black;
}
It does not seem to work. Any help will be appreciated