I am trying to do a really simple button using a div. Everything's fine, except that when the mouse cursor goes over the button, the text is supposed to turn black, and the background-color white...But currently, I have to put the mouse cursor over the text to see it turn black.
Here's my CSS code :
.pledges_boutons {
width: 157px;
color: #fff;
font-family: "Arial Black", Gadget, sans-serif;
font-size: 11px;
height: 18px;
text-align: center;
margin-right: 10px;
margin-left: 10px;
margin-top: 5px;
margin-bottom: 5px;
text-decoration: none;
display: block;
background-color: #868686;
}
and Hover :
.pledges_boutons:hover {
color: #000;
cursor: pointer;
background-color: #fff;
}
HTML:
<div class="pledges_boutons">
<a href="http://www.google.com">Click here</a>
</div>
Here's my fiddle
Thank you!