CSS input field styling - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

CSS input field styling

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style>
.btn, input, button {
   display:inline-block;
   vertical-align:baseline;<!--from  w  ww  .j av  a  2 s.c  o  m-->
   float:left;
   -webkit-box-sizing:border-box;
   -moz-box-sizing:border-box;
   box-sizing:border-box;
   height:34px;
   line-height:16px;
   font-size:16px;
   font-family:sans-serif;
   font-size:16px;
   font-family:sans-serif;
   border:0;
   padding:0;
   margin:0;
   cursor:pointer;
   cursor:hand;
   text-decoration:none;
   color:Chartreuse;
   background-color:yellow;
   padding:9px;
   margin-right:2px;
   margin-bottom:2px;
}
</style> 
 </head> 
 <body translate="no"> 
  <form action=""> 
   <a href="" class="btn">Lorem </a> 
   <input type="text" class="btn" placeholder="input"> 
   <button class="btn">Lorem</button> 
   <a href="" class="btn">Lorem </a> 
  </form>  
 </body>
</html>

Related Tutorials