Insert icon in the end of input - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

Insert icon in the end of input

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">
.number input {<!--from w w  w  .ja  v a 2  s  .c  o  m-->
   background-image:url('https://www.java2s.com/style/demo/Google-Chrome.png');
   display:inline-block;
   width:124px;
   height:22px;
   background-repeat:no-repeat;
   background-position:97px 0;
   vertical-align:middle;
}
</style> 
 </head> 
 <body> 
  <div class="col-md-6"> 
   <div class="form-group number"> 
    <label for="addEventstart">Lorem ipsu</label> 
    <input type="text" class="signup-input  eventStartDate" id="addEventstart" required name="startDate" placeholder="DD.MM.YYYY"> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials