html - Vertical spacing textboxes with Bootstrap form-horizontal -


i have form-horizontal created bootstrap 3 looks this:

desktop form

when shrink viewport i'd "start" , "end" textboxes have whitespace gap between them. however, scrunched together:

mobile form

what can add vertical whitespace looks consistent rest of form?

here bootply workspace html: http://www.bootply.com/sfb9elzbrc

<form class="form-horizontal" method="post" action="">     <div class="form-group">         <div class="col-sm-4">             <label for="user_search">who reservation for?</label>             <input id="user_search" name="selected_user_id" class="form-control">         </div>     </div>     <div class="form-group">         <div class="col-sm-4">             <label for="tool_search">which tool used?</label>             <input id="tool_search" name="selected_tool_id" class="form-control">         </div>     </div>     <label class="control-label" for="start">when reservation start , end?</label>     <div class="form-group">         <div class="col-sm-4">             <input id="start" name="start" class="form-control" type="text" placeholder="start" autocomplete="off">         </div>         <div class="col-sm-4">             <input id="end" name="end" class="form-control" type="text" placeholder="end" autocomplete="off">         </div>     </div>     <div class="form-group">         <div class="col-sm-8">             <label for="additional_information">would include additional information reservation? (for example, tool configuration settings).</label>             <textarea name="additional_information" class="form-control" id="additional_information" rows="4"></textarea>         </div>     </div>     <input type='submit' id="create_reservation" class="btn btn-default" value="create reservation"> </form> 

add class divs:

    <div class="col-sm-4 resv">         <input id="start" name="start" class="form-control" type="text" placeholder="start" autocomplete="off">     </div> 

and use @media query add spacing:

@media screen , (max-device-width: 480px) {     .resv {margin-top:10px;} } 

modified bootply: http://www.bootply.com/31cyqbthez


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo