html - Button background not changing on hover -
i've created button link using usual methods, however, encountering curious issue background colour not changing on hover, when should.
i've missed obvious, can't life of me find it.
the code in question is:
.downloadbtn { color: white; display: block; margin: auto; width: 250px; height: 60px; margin-top: 30px; padding: 20px; background: #06bce4; background: -moz-linear-gradient(top, #06bce4 0%, #0589d4 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#06bce4), color-stop(100%,#0589d4)); background: -webkit-linear-gradient(top, #06bce4 0%,#0589d4 100%); background: -o-linear-gradient(top, #06bce4 0%,#0589d4 100%); background: -ms-linear-gradient(top, #06bce4 0%,#0589d4 100%); background: linear-gradient(to bottom, #06bce4 0%,#0589d4 100%); filter: progid:dximagetransform.microsoft.gradient( startcolorstr='#06bce4', endcolorstr='#0589d4',gradienttype=0 ); border: 1px solid #076ca0; border-radius: 4px; -webkit-box-shadow: inset 0px 1px 0px 0px rgba(64, 209, 236, 1); -moz-box-shadow: inset 0px 1px 0px 0px rgba(64, 209, 236, 1); box-shadow: inset 0px 1px 0px 0px rgba(64, 209, 236, 1); -webkit-animation-delay: 2s; -webkit-animation-iteration-count: infinite; -webkit-animation-duration: 6s; -moz-animation-delay: 2s; -moz-animation-iteration-count: infinite; -webkit-animation-duration: 6s; } .downloadbtn :hover { background: green; }
a jsfiddle here: http://jsfiddle.net/4xxaf/
updated fiddle. added space between selector , :hover
http://jsfiddle.net/4xxaf/1/
Comments
Post a Comment