adam12 Posted March 25, 2022 Share Posted March 25, 2022 I've implemented this Responsive Topnav Example and would like to know how I can highlight the selected menu item in the top navigation bar in a different color. Link to comment Share on other sites More sharing options...
Ingolme Posted March 25, 2022 Share Posted March 25, 2022 What does it mean for an item to be selected? Link to comment Share on other sites More sharing options...
JamesL Posted August 30, 2022 Share Posted August 30, 2022 You just want to change the background-color? Change the 'background-color' property in CSS: .topnav a:hover { background-color: red; color: black; } .topnav a.active { background-color: orange; color: white; } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now