Button covered transparent image - HTML CSS CSS Form

HTML CSS examples for CSS Form:input image button

Description

Button covered transparent image

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">

a#hero_btn_id {
   position: absolute;
   left: 230px;
   top: 35px;
   width: 109px;
   height: 103px;
   background-color: #005500;
   z-index:1;<!--from  w  w w  .  j av a2  s  . com-->
}
a#hero_btn_id:hover {
   position: absolute;
   left: 230px;
   top: 35px;
   width: 109px;
   height: 103px;
   background-color: #008800;
}
#top_image_id {
   position:absolute;
   background: url("https://www.java2s.com/style/demo/InternetExplorer.png");
   width: 1280px;
   height: 660px;
}
#back_image_id {
   position:absolute;
   background-color: #cccccc;
   width: 1280px;
   height: 660px;
}


      </style> 
 </head> 
 <body> 
  <div id="back_image_id"> 
   <a id="hero_btn_id" href="#"></a> 
  </div> 
  <div id="top_image_id"></div>  
 </body>
</html>

Related Tutorials