Adjust input width with bootstrap class -
i've created form using bootstrap classes. problem don't know how solve how adjust width of input elements on form? know can use inline styling or write custom css class, there way can adjust width of both inputs using bootstrap classes?
i adjust width of both inputs approximately same buttons arrows / down. shrink both inputs.
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <br/> <div class="btn-group"> <button type="button" class="btn btn-primary" >nazaj</button> </div> <div class="btn-group col-sm-offset-1"> <button type="button" class="btn btn-primary "><span class="glyphicon glyphicon-arrow-up"></span></button> </div> <div class="btn-group"> <button type="button" class="btn btn-primary"><span class="glyphicon glyphicon-arrow-down"></span></button> </div> <div class="btn-group"> <input type="text" class="form-control" /> </div> <div class="btn-group"> <h1>/</h1> </div> <div class="btn-group"> <input type="text" class="form-control" /> </div> <div class="btn-group"> <button type="button" class="btn btn-primary"><span class="glyphicon glyphicon-arrow-up"></span></button> </div> <div class="btn-group"> <button type="button" class="btn btn-primary" ><span class="glyphicon glyphicon-arrow-down" ></span></button> </div> <div class="btn-group col-sm-offset-1"> <button type="button" class="btn btn-success">shrani</button> </div>
you can use bootstrap grid like
<div class="btn-group"> <input type="text" class="form-control col-md-2" /> </div>
read tutorial https://www.w3schools.com/bootstrap/bootstrap_grid_system.asp
Comments
Post a Comment