Unable to remove CSS class a: hover background-color
Asked Answered
H

3

17

I've created a CSS class .press-title, however I've been unable to remove the backround color applied on hover.

.press-title a:hover { background-color: none; text-decoration: none;}

Ideas?

Link is towards the bottom of the page:

http://domdemarcos.com/typography/

EDIT to reflect change made from reply.

Hern answered 10/2, 2013 at 22:45 Comment(0)
S
28

Try

.press-title a:hover { background-color: transparent; text-decoration: none; }
Stilt answered 10/2, 2013 at 22:48 Comment(1)
Boom, that was it. Thanks!Hern
S
7

Try:

background-color:transparent;
Speos answered 10/2, 2013 at 22:48 Comment(0)
A
2

Your selector is invalid. Firefox throws this message: Expected identifier for pseudo-class or pseudo-element but found ' '. Ruleset ignored due to bad selector.

It should be:

.press-title a:hover
Appellation answered 10/2, 2013 at 22:48 Comment(1)
Thanks. Changed, but still no joy.Hern

© 2022 - 2024 — McMap. All rights reserved.