Use image as submit button - HTML CSS CSS Form

HTML CSS examples for CSS Form:input submit

Description

Use image as submit button

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 ww w . j av  a 2  s . c om-->
   background: none;
   border: none;
   cursor: pointer;
   margin: 0;
   padding: 0;
}


      </style> 
 </head> 
 <body> 
  <form method="post" action=""> 
   <button type="submit" name="animal" value="pig"> <img src="https://www.java2s.com/style/demo/Google-Chrome.png" alt="Pig"> </button> 
  </form> 
  <script type="text/javascript">

      </script>  
 </body>
</html>

Related Tutorials