Whats the best way to style a background image on a textbox ex:search box - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image Text

Description

Whats the best way to style a background image on a textbox ex:search box

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-container {
   background:red;
   overflow:hidden;
   height:27px;
   margin-top:4px;
   padding:7px 11px 0px;
   width:201px;
}

.input-transparent {
   background-color:Chartreuse;
   border:none;
   overflow:hidden;
   color:yellow;
   width:201px;
}
</style> <!--from www  .ja v a 2s . co  m-->
 </head> 
 <body>
   Lorem ipsum dolor 
  <br> 
  <div class="input-container"> 
   <input type="text" class="input-transparent" name="fullname"> 
  </div>  
 </body>
</html>

Related Tutorials