So, it's pretty easy to set a hover over the effect for an element. But I want the user to hang above the button with the text in it, so that the button turns from black to white and the text from white to black at the same time. Instead of two separate elements. How can I do it?
Thanks!
#signUpBox {
width: 150px;
height: 47px;
border-style: solid;
border-width: 1px;
margin: auto;
margin-top: 25px;
border-radius: 2px;
}
#signUpBox:hover {
background-color: #ffffff;
}
h3 {
text-align: center;
margin-top: -35px;
letter-spacing: 1px;
font-size: 17px;
}
source
share