CSS style button with input text field - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button

Description

CSS style button with input text field

Demo Code

ResultView the demo in separate window


<html>
 <head> 
  <style>

body {<!--from w  w  w  .ja  v a 2 s  .c  o  m-->
   background: #fff;
}
.inpWrap {
   display: inline-block;
   border: 2px solid orange;
   height:34px;
   vertical-align:middle;
}
.inp {
   width: 96%;
   padding: 4px;
   font-size: 20px;
   border: 1px solid #fff;
   background: transparent;
}
.inp1 {
   padding: 4px;
   height:34px;
   font-size: 20px;
   text-align:center;
   border: 1px solid #fff;
   background: transparent;
}

      </style> 
 </head> 
 <body> 
  <div class="inpWrap" style="width:60%"> 
   <input class="inp" type="text"> 
  </div> 
  <div class="inpWrap" style="width:110px"> 
   <button type="submit" class="inp1">OK</button> 
  </div>  
 </body>
</html>

Related Tutorials