Colored cox inside form field - HTML CSS CSS Form

HTML CSS examples for CSS Form:Form

Description

Colored cox inside form field

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style>
.body {<!--from ww w .j a v  a 2s .  c  o m-->
   padding:21px;
}

fieldset.example {
   position:relative;
}

fieldset.example,
fieldset.example:before,
fieldset.example input {
   height:34px;
   padding:0;
   border-width:0;
}

fieldset.example input {
   border:2px solid Chartreuse;
   border-left:0px;
   padding-left:6px;
   border-radius:0 6px 6px 0;
}

fieldset.example:before {
   content:"\261E";
   width:31px;
   border:2px solid yellow;
   display:inline-block;
   float:left;
   position:relative;
   background:red;
   color:blue;
   text-align:center;
   line-height:34px;
   border-radius:6px 0 0 6px;
}
</style> 
 </head> 
 <body translate="no"> 
  <fieldset class="example"> 
   <input type="text" placeholder="Phone"> 
  </fieldset>  
 </body>
</html>

Related Tutorials