Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to remove CSS class a: hover background-color

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.

like image 407
cunningfox Avatar asked Feb 10 '13 22:02

cunningfox


People also ask

How do I turn off hover in CSS?

To remove the CSS hover effect from a specific element, you can set the pointer-events property of the element (the hover behavior of which you want to disable) to “none”.

How do you set hover to none?

One method to do this is to add: pointer-events: none; to the element, you want to disable hover on. (Note: this also disables javascript events on that element too, click events will actually fall through to the element behind ).


1 Answers

Try

.press-title a:hover { background-color: transparent; text-decoration: none; }
like image 163
Rob Stevenson-Leggett Avatar answered Nov 02 '22 19:11

Rob Stevenson-Leggett