Brandon
Brandon

Reputation: 13

Why is the hover background changing to white?

http://jsfiddle.net/EZbmw/

The button has a style blue background and the :hover state should maintain that blue background. In the CSS, you'll see I removed the background from .blue:hover and that made the background disappear altogether.

Could you tell me why?

Upvotes: 1

Views: 53

Answers (1)

Josh Smith
Josh Smith

Reputation: 15028

The problem lies in the .button styling. Your .button:hover includes a background: #eee.

You would need to continue overriding the :hover styling within your .button.

Upvotes: 3

Related Questions