0

I just happened to insert a space between the a tag name and the colon in my CSS file and this changed the output.

What is the difference between the following two CSS selectors:

    a:hover {
        ...
    }

and

    a :hover {
        ...
    }
PeterJames
  • 1,137
  • 1
  • 9
  • 17
  • 1
    `a : hover` won't do anything, but `a :hover` will select all descendants of every anchor when hovered. And `a:hover` selects all anchors when hovered. – j08691 Sep 20 '22 at 19:50

0 Answers0