Replace default submit button with image - HTML CSS CSS Form

HTML CSS examples for CSS Form:input submit

Description

Replace default submit button with 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">

input[type=submit]{
   cursor: pointer;
}
#submit {<!--from www  . j  a  v  a  2s .c  o m-->
   background : url("https://www.java2s.com/style/demo/Opera.png") no-repeat center center;
   width:200px;
   height:auto;
}


      </style> 
 </head> 
 <body> 
  <input type="submit" id="submit" value="Submit" src="https://www.java2s.com/style/demo/Safari.png"> 
  <br> 
  <br> 
  <br> 
  <input type="image" src="https://www.java2s.com/style/demo/Opera.png" value="Submit">  
 </body>
</html>

Related Tutorials