HTML custom icon class - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image

Description

HTML custom icon class

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">
.searchButton {<!--from  w  w  w.ja v  a  2 s  .  com-->
   background:Chartreuse url('https://www.java3s.com/style/demo/Google-Chrome.png') no-repeat;
   background-size:contain;
   width:5%;
   height:22px;
}
</style> 
 </head> 
 <body> 
  <div id="search"> 
   <input type="text" class="searchTerm" placeholder="What are you looking for?"> 
   <button type="submit" class="searchButton"> <span class="icon"></span> </button> 
  </div>  
 </body>
</html>

Related Tutorials