I'm in the process of developing a touch-optimized web application. As part of the design concept, I've implemented some visually appealing div elements that respond to clicks or touches for easy navigation.
While this functionality works perfectly on computer and Android browsers, I've encountered an issue when using Safari on an iPad - the shadow effect is not displaying as intended. Despite checking my syntax, it appears to be either a bug or lack of support.
Has anyone else faced this issue and found a solution or workaround?
Here's the jsFiddle link for reference
CSS:
div.touch-button:active {
width: 300px;
border: 1px solid #ccc;
padding: 10px;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
div.touch-button {
width: 300px;
border: 1px solid #ccc;
padding: 10px;
-moz-box-shadow: 0 0 5px rgba(0,0,0,0.5);
-webkit-box-shadow: 0 0 5px rgba(0,0,0,0.5);
box-shadow: 0 0 5px rgba(0,0,0,0.5);
}