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.

Leniel Maccaferri
  • 100,159
  • 46
  • 371
  • 480
cunningfox
  • 173
  • 1
  • 1
  • 6

3 Answers3

27

Try

.press-title a:hover { background-color: transparent; text-decoration: none; }
Rob Stevenson-Leggett
  • 35,279
  • 21
  • 87
  • 141
7

Try:

background-color:transparent;
mika
  • 1,411
  • 1
  • 12
  • 23
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
Šime Vidas
  • 182,163
  • 62
  • 281
  • 385