change the size of icon inside input using css - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

change the size of icon inside input using css

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">
.form_input {
   font-size:11px;
   font-family:Roboto;
   font-weight:normal;
   width:343px;
   border:none;
   border-bottom:2px solid;
}

#input-icon {<!-- w  ww .j a va 2s.  c  om-->
   background:url('https://www.java2s.com/style/demo/Google-Chrome.png') no-repeat scroll 6px 6px;
   background-position:right;
   background-size:13px;
   height:5px;
   opacity:0.5;
}

.form_input::-webkit-input-placeholder {
   color:Chartreuse;
}
</style> 
 </head> 
 <body> 
  <div class="form_group"> 
   <input id="input-icon" type="text" class="form_input " placeholder="W jakim celu z nami kontaktujesz?"> 
  </div>  
 </body>
</html>

Related Tutorials