I am working on creating an effect where my links change when hovered over and then stay changed when clicked until a new link is clicked. Initially, the links are slightly transparent but become fully opaque with a 5px bottom border when hovered over. Despite using the following CSS:
nav ul li a:active, nav ul li a.current {
opacity:1;
border-bottom:5px solid #37DD57;
position: relative;
top: 1px;
}
However, when I click a link, it does not stay active as expected. Is there something I might be doing wrong or a specific script function that I need to include? You can view my current website draft here: