Place button next to text field - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button

Description

Place button next to text field

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">

#theInput<!--from   w w  w.j a v  a  2  s.  co m-->
{
   border:solid 1px green;
   height: 20px;
   line-height: 20px;
   vertical-align: middle
}
#theButton
{
   border: solid 1px green;
   height: 22px;
   line-height: 22px;
   vertical-align: middle
}


      </style> 
 </head> 
 <body> 
  <input type="text" id="theInput"> 
  <input type="button" value=" Go " id="theButton">  
 </body>
</html>

Related Tutorials