I have encountered an issue with this CSS/HTML button. Despite having the exact same code as another HTML button that functions correctly, this button's shadow moves upwards instead of translating 4 pixels down like it is supposed to.
.back {
font-size: 28px;
color: #ecf0f1;
text-decoration: none;
border-radius: 5px;
border: solid 1px #f39c12;
background: #e67e22;
text-align: center;
-webkit-transition: all 0.1s;
-moz-transition: all 0.1s;
transition: all 0.1s;
-webkit-box-shadow: 0px 6px 0px #d35400;
-moz-box-shadow: 0px 6px 0px #d35400;
box-shadow: 0px 6px 0px #d35400;
font-family: "Futura";
margin: -20px -50px;
position: relative;
top: 50%;
left: 50%;
}
.back:hover {
background: #ffad66;
color: #ffffff;
-webkit-box-shadow: 0px 6px 0px #e07f43;
-moz-box-shadow: 0px 6px 0px #e07f43;
box-shadow: 0px 6px 0px #e07f43;
}
.back:active {
-webkit-box-shadow: 0px 2px 0px #d35400;
-moz-box-shadow: 0px 2px 0px #d35400;
box-shadow: 0px 2px 0px #d35400;
transform: translateY(4px);
}