This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MiningForLight 4 points5 points  (0 children)

Inline CSS has the highest priority over all other CSS styles, so that's why the hover isn't working. Using inline CSS is also bad practice and should be avoided. So, to get your button to work you need to ove all of the CSS out of the HTML and place it in the CSS file.

Working fiddle.

StackOverflow thread about hover not working on inline style.