I’ve added a button in my main navigation using the code you provided in your documentation;
@media (min-width:769px) {
.main-navigation .main-nav ul li.nav-button a {
background-color: #ffffff;
border: 2px solid #000000;
color: #000000;
line-height: 35px; /*this number will likely need to be adjusted*/
}
}
But how do I get the button to change color when it’s hovered over?
@media (min-width:769px) {
.main-navigation .main-nav ul li.nav-button a {
background-color: #ffffff;
border: 2px solid #000000;
color: #000000;
line-height: 35px; /*this number will likely need to be adjusted*/
}
.main-navigation .main-nav ul li.nav-button:hover a {
background-color: #000000;
color: #ffffff;
}
}