Bootstrap display form labels inline - HTML CSS CSS Form

HTML CSS examples for CSS Form:Form

Description

Bootstrap display form labels inline

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css"> 
 </head> <!--   w w w  . j a v a2s . co  m-->
 <body> 
  <form> 
   <div class="row"> 
    <div class="span6"> 
     <label class="control-label" for="likedcolors">Lorem ipsum dolor sit amet, co</label> 
     <div class="controls"> 
      <input type="text" class="input-large" name="likedcolors" id="likedcolors"> 
     </div> 
    </div> 
    <div class="span6"> 
     <label class="control-label" for="dislikedcolors">Lorem ipsum dolor sit amet, con</label> 
     <div class="controls"> 
      <input type="text" class="input-large" name="dislikedcolors" id="dislikedcolors"> 
     </div> 
    </div> 
   </div> 
  </form>  
 </body>
</html>

Related Tutorials