Remove the dotted line on my image button when I click it - HTML CSS CSS Form

HTML CSS examples for CSS Form:input image button

Description

Remove the dotted line on my image button when I click it

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

#myButton {<!-- w w w  . j ava  2  s  .  c o m-->
   background: transparent;
   border: none !important;
   font-size: 0;
   border: none;
   outline: none;
   -moz-outline-style: none;
}
button::-moz-focus-inner {
   border:0;
}


      </style> 
 </head> 
 <body> 
  <div> 
   <button id="myButton" type="button"> <img id="myImage" src="https://www.java2s.com/style/demo/Firefox.png"> </button> 
   <div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials