Display only the shadow to a button in HTML - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Button

Description

Display only the shadow to a button in HTML

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

button{<!--from   w  ww .  ja va2s. com-->
   box-shadow: 5px 5px 5px #888888;
   background: transparent;
   border: none;
}
#buttontext{
   position:relative;
   bottom:-20px;
}


      </style> 
 </head> 
 <body> 
  <button type="button"> <span id="buttontext">Click Me!</span> </button>  
 </body>
</html>

Related Tutorials