I've recently taken over the maintenance and upgrade of an existing website.
One interesting aspect of the site is how it handles buttons.
The html code for buttons looks like this:
<div class="btn">
<a id="dv_remCont" runat="server" href="#" onclick="removeContact();">remove contact</a>
</div>
While the css styling for buttons is as follows:
div.btn a {
font-weight:bold;
display:inline-block;
border-radius: 2px;
padding: 0 1.2em 0 1.2em;
color:#ffffff;
background-color:black;
box-shadow: 0px 0px 5px 1px #898986, inset -1px -1px 1px rgba(0,0,0,0.5), inset 1px 1px 1px rgba(255,255,255,0.8), 0px 0px 1px 1px #000000;
}
div.btn a:hover {
box-shadow: 0px 0px 5px 1px #898986, inset 1px 1px 1px rgba(0,0,0,0.5), inset -1px -1px 1px rgba(255,255,255,0.8), 0px 0px 1px 1px #000000;
}
Using this method creates visually appealing clickable buttons. However, it also presents some challenges such as issues with form functionality and alignment problems in older versions of Internet Explorer.
What do you think are the benefits of implementing buttons in this manner? Have you encountered buttons styled like this before?