
Ray C. answered 05/19/19
Computer Engineer Specializing in Web Development
I would strongly recommend against disabling a link through CSS. Is there a specific reason you want to disable that link? If you have a navigation pane and a link is stylized to demonstrate that the page being viewed is the current one, what is the harm in letting the user click the link again to let the page refresh?
If you absolutely have to do it you can add the following property to your class:
This only works on relatively new browsers. I would heavily reconsider the functionality you are implementing, however, and determine if it's absolutely necessary.