Imagine a scenario where I have some links and I want to change the color of certain links when hovered over or clicked, such as making them green and red.
Instead of the traditional way of styling each link individually, is there a more efficient method?
I attempted using .links a:hover, a:active{}
and .links a,a:visited{}
, but it ended up affecting other links that were not intended to be styled in that way.
Just to provide context, I am working with Bootstrap 4 and Sass for this project.