these are the two types of buttons that i have in my project and i want to apply same css to both of them but i am failing to do so and i am not sure why the first is:
<a href="#" class="btn btn-primary">Add</a>
second kind is:
<input class="btn btn-primary" type="submit" value="Add" name="add1" onclick='if (confirm("Check all the entry ?"))
{ document.post_57a43df006372873848099.submit(); }
event.returnValue = false; return false;' >
following is the css to my code:
.btn {
position: relative;
font-size: 16px;
color: black;
text-decoration: none;
display: inline-block;
border: 3px solid #333333;
border-radius: 5px;
padding: 10px;
margin-top: 25px;
overflow: hidden;
font-family: Arial, sans-serif;
font-weight: 300;
-webkit-transition: all 250ms ease-in-out;
transition: all 250ms ease-in-out;
}
.btn span {
position: relative;
z-index: 1;
}
.btn:before {
display: block;
position: absolute;
top: 50%;
left: 50%;
width: 200px;
height: 200px;
margin-left: -100px;
margin-top: -100px;
content: '';
border-color: #97455f;
border-style: solid;
border-width: 1px;
border-radius: 100px;
-webkit-transform-origin: center center;
transform-origin: center center;
-webkit-transition: all 250ms ease-in-out;
transition: all 250ms ease-in-out;
box-sizing: border-box;
}
.btn:hover {
color:white ;
}
.btn:hover:before {
border-width: 100px;
}
so i am using class btn on both but the css is only being applied to the and i dont know why. any help would be appreciated! code here : https://jsfiddle.net/jy4gth0x/