Home > other >  CSS pseudoclass usage
CSS pseudoclass usage

Time:04-08

I want to combine a:link and a:visited at once. What is best method?

I am thinking of a:link visited. This doesn't work though! What to do then? What is the right way?

CodePudding user response:

Use a comma to apply the same CSS rules to multiple selectors.

a:link, a:visited { ... }

CodePudding user response:

You can use a:link:visited it doesn't matter if you already have :link

  • Related