Input displaying inline - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

Input displaying inline

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">
label {<!--from   w  w w.ja  v a  2s .  com-->
   display:block;
   width:100px;
   float:left
}

div {
   clear:both;
   background-color:Chartreuse;
}

h3 {
   font-weight:bold;
   display:block;
   clear:both;
}
</style> 
 </head> 
 <body> 
  <h3>Lorem ipsu</h3> 
  <div> 
   <label>Lore</label> 
   <input type="text"> 
   <label>Lore</label> 
   <input type="text"> 
   <label>Lore</label> 
   <input type="text"> 
  </div> 
  <h3>Lorem ipsu</h3> 
  <div> 
   <label>Lore</label> 
   <input type="text"> 
  </div> 
  <div> 
   <label>Lore</label> 
   <input type="text"> 
  </div> 
  <div> 
   <label>Lore</label> 
   <input type="text"> 
  </div>  
 </body>
</html>

Related Tutorials