css - Bootstrap input group and button alignment -
i want input group aligned left, is, , "add new" button aligned right of row.
<div class="row"> <div class="input-group col-sm-6"> <input type="text" class="form-control" placeholder="search substring in good's name.."></input> <span class="input-group-btn"> <button class="btn btn-default" type="button" onclick="filter()">search</button> </span> </div> <div class="col-sm-6"> <button class="btn btn-default text-right" type="button" onclick="addnew()">add new</button> </div> </div>
in action: bootply
as can see, input group , "add new" button stacked vertically, although they're in single row.
<div class="row"> <div class="col-lg-6"> <div class="input-group"> <input type="text" class="form-control" placeholder="search substring in good's name.."> <span class="input-group-btn"> <button class="btn btn-default" type="button" onclick="filter()">search</button> </span> </div> </div> <div class="col-lg-6"> <button class="btn btn-default" type="button" onclick="addnew()">add new</button> </div> </div>
separete col-lg-6
, input-group
div
bootply : http://www.bootply.com/w8ao9a0a4r
Comments
Post a Comment