I have 4 buttons with a horizontal line underneath for which i used a HR element. When i click the buttons they turn red. Is it possible that i make the line underneath turn red as well when i click any of the buttons?
button.nav-buttons {
width: 130px;
border: 0.5px solid;
background-color: transparent;
border-color: transparent;
border-radius: 3px;
font-family: "Lucida Console", "Courier New", monospace;
color: white;
font-weight: 600;
font-size: 20px;
}
button.nav-buttons:hover {
border-color: white;
}
button.nav-buttons:active {
color: red;
border: 1px solid red;
}
#hr-nav {
width: 80%;
margin: auto;
border: 1px solid white;
}