I am building a site that uses both text hyperlinks, as well as CSS button ones. I am trying to configure the CSS so that the text links generate an underline when hovered, but not the buttons.
I have tried a number of configurations with the :not() and a classes like a:not(button):hover
, a :not(button):hover
, a:hover :not(button)
and a:hover:not(button)
but have only succeeded in making the buttons have underlines on hover and not the text with a button:hover
. I need to reverse this. All I've tried underlines the buttons as well or doesn't underline the text.
Any help would be appreciated. I'm sure it's simple, but I can't see it.