Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Apply a background hover to a tag? Re: Apply a background hover to a tag?

#82378
LaurelBrittany
Participant

Well, I guess this:

h2 a:hover { color: #133340; background-color: #8dd0ea; text-decoration: underline;}
h2 a:active { color: #0e2731; background-color: #83c1d9; }

should be

a:hover h2 { color: #133340; background-color: #8dd0ea; text-decoration: underline;}
a:active h2 { color: #0e2731; background-color: #83c1d9; }

But it doesn’t completely do the job XD. It puts a line through the text instead of completely highlighting it. Getting closer . . .