Text input and button alignment - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button

Description

Text input and button alignment

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[type=text] {
   display:block;
}

input {<!--from   ww w. ja  v a 2s . c  o m-->
   margin:0;
}
</style> 
 </head> 
 <body> 
  <form> 
   <input name="q" type="text" placeholder="Search users"> 
   <input value="Search" type="submit"> 
  </form>  
 </body>
</html>

Related Tutorials