Place button below another form - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button layout

Description

Place button below another form

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

body {<!-- ww  w.  j  ava2  s . c  om-->
   display: flex;
   flex-direction: column;
}
form:first-child {
   order: 2;
}


      </style> 
 </head> 
 <body> 
  <form> 
   <input type="text" name="text"> 
   <br> 
   <input type="submit" class="btn btn-primary"> 
  </form> 
  <br> 
  <form> 
   <input type="email" name="email"> 
   <br> 
   <input type="submit" class="btn btn-default"> 
  </form>  
 </body>
</html>

Related Tutorials