CSS to force inline input fields - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

CSS to force inline input fields

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">
.LoginDiv {<!-- w ww . ja  v a  2s  . c o  m-->
   display:inline-block;
}
</style> 
 </head> 
 <body> 
  <form> 
   <div class="LoginDiv"> 
    <input type="text" name="user_login" tabindex="1" placeholder="Email"> 
   </div> 
   <div class="LoginDiv"> 
    <input type="password" name="user_password" tabindex="2" placeholder="Password"> 
   </div> 
   <button type="submit">Lorem</button> 
  </form>  
 </body>
</html>

Related Tutorials