How do I add a class and a pseudo element?

I have this code:

a:hover {
      font-weight: bold;
      padding: 10px;
      font-size: 20px;

How can I add the class .category to it? because I don’t want all my anchors to do that when hovered over.

Is this what you are looking for?

.category:hover {

This will apply hover pseudoclass to category class.

1 Like