How can I code the CSS to keep the background color in an active state while in a section? For example, either clicking or scrolling through the sections will highlight the corresponding navigation link. Thank you.
Hi,
You would need JS for that if I understand you correctly.
If for example you click the portfolio link then you should dynamically add a class to it so that you can change the background using that class. When you click another menu link then you remove the class and apply it to the new link.
Although CS has a focus:state it won’t really help you in this instance. I can move this to the JS forum if you need more help.
I would really appreciate the bump. Please move and subscribe me for the email notifications. I appreciate it much. Thank you.