Home › Forums › CSS › Apply a background hover to a
June 25, 2011 at 11:07 am
#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 . . .