Input and button inline aligned to center - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button

Description

Input and button inline aligned to center

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

input, button {
   vertical-align:middle;<!--  ww w .  j a  va 2 s . co  m-->
}


      </style> 
 </head> 
 <body> 
  <span> <input type="text"> <button style="height:25px; width:20px"></button> </span>  
 </body>
</html>

Related Tutorials