I want react to hovering on a link:
/* mouse over link */
a:hover {
text-decoration: none ;
border-bottom: 1px dotted ;
}
…to alter slightly the background color around the text. Rather than specify a certain color, I want to just lighten or darken whatever the inherited color as currently set. For hover
and active
on a link, I want the background color to change, to give something of the effect of a button being pressed.
I want to be able to alter the background color of the text or page without having to alter the specific color in the a:hover
rule too.
filter: brightness()
, though this alters the color of the text rather than the background color. – Presumptuoushover
andactive
on a link, I want the background color to change, to give something of the effect of a button being pressed. – Goliard