Add background image to input text field - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:input text

Description

Add background image to input text field

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
.body1<!--from w w w .  j  a v  a  2s.  com-->
 {
   background-image:url('http://www.java2s.com/style/demo/Google-Chrome.png');
   background-repeat:repeat-y;
   padding-left:21px;
}
</style> 
 </head> 
 <body> 
  <input type="text" class="body1">  
 </body>
</html>

Related Tutorials