Skip to content
Loading
How to make your input group horizontal?  
  •               
  •                       
  •                     class="row">  
  •                         for="Name">Name:  
  •                         class="input-group col-md-6 col-md-offset-8 col-sm-10 col-xs-10">  
  •                             class="input-group pull-left">  
  •                                 @Html.TextBoxFor(m => m.FirstName, new { @class = "form-control", type = "text", id = "firstname", autofocus = "autofocus", placeholder = "First Name", required = "required" })  
  •                                 class="input-group-append">  
  •                                     class="input-group-text">  
  •   
  •                                       
  •                                   
  •                               
  •                           
  •                       
  •   
  •                     
      
  •   
  •                     class="row">  
  •                      for="LastName">LastName:  
  •                       class="input-group col-md-6 col-md-offset-8 col-sm-10 col-xs-10">  
  •                             class="input-group pull-left">  
  •                                 @Html.TextBoxFor(m=>m.LastName, new {@class = "form-control", type="text", id="lastname", autofocus = "autofocus", placeholder = "Last Name", required = "required"})  
  •                                 class="input-group-append">  
  •                                     class="input-group-text">  
  •   
  •                                       
  •                                   
  •                               
  •                           
  •                       
  •   
  •                 }  
  •               
  •               
  •           
  •   
  •              
  •  
     
     

    4 Replies

    Know the answer? Post it — somebody with the same question will find it here.