Is there away to change a nav bar link to a different colour so a potential visitor would see which page they are on? So ultimately the link would need to revert back to the default colour when a different page link is chosen.
My nav bar works as it should through visited/hover/active but I’m struggling to find appropriate CSS to deal with my desired effect. Is it even possible with CSS styling or is this a job for jQuery?
Yes. You add a class to the current page link and apply the styles to that. If you’re using plain HTML, you need to add the class on each page (so add it to the Index.html link on your home page, the contact.html link on your contact page, etc.). If you’re using something like a PHP include for the menu, you can add the class dynamically.
Just wanted to let you know i solved this issue using the ‘matching pairs technique’ @ronpat suggested above. The penny took some dropping & inadvertently led me to do a bit of housekeeping, it works great though, thank you.
If a may ask another question;
I had a play with the php demo posted by @SamA74 but couldn’t get it to work, would this be because my files are only still local & would only work on a php enabled server?