i am trying to do a hover effect with css something super simply, but i'm over looking something, im trying to have the user to be able to hover over a button and have a light shade of white with an opacity applied. But whenever i am doing so my border of the button disappears, I know this because I am targeting the button element. So how does this work without targeting the button element and still keeping the border from not going away. My jsfiddle link is below.
https://jsfiddle.net/bvcxtds/6Lr501g1/
and here is my markup
<button><a>SIGN UP</a></button>
and my css
button {
border: 1px solid white;
background: none;
border-radius: 25px;
width: 150px;
}
button > a {
color: white;
}
button:hover {
opacity: 0.2;
background: white;
}
body {
background: black;
}