Bootstrap form-horizontal left align - HTML CSS CSS Form

HTML CSS examples for CSS Form:Form

Description

Bootstrap form-horizontal left align

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   ww  w.j a  v a  2 s.c  o  m-->
   float:left;
}
</style> 
 </head> 
 <body> 
  <form class="form-horizontal"> 
   <div class="form-group"> 
    <label class="control-label col-sm-3 label" for="username">Lorem ip</label> 
    <div class="col-sm-9"> 
     <input type="text" class="form-control" id="username" placeholder="Enter username"> 
    </div> 
   </div> 
  </form>  
 </body>
</html>

Related Tutorials