Displaying html form inputs horizontally - HTML CSS CSS Form

HTML CSS examples for CSS Form:Form

Description

Displaying html form inputs horizontally

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 {<!--from  w  w w.  j a v a  2 s. com-->
   display:inline;
}
</style> 
 </head> 
 <body>
   Lorem ips 
  <input type="text" name="id" maxlength="30" value="">Lorem ipsum 
  <input type="text" name="pw" maxlength="30" value=""> 
  <input type="submit" name="submit" value="Login">  
 </body>
</html>

Related Tutorials