I am trying to get buttons on these form elements:
Download Example
to look like controls in this example:
Bootsnipp example
I'm basically trying to recreate the Bootsnipp example using the Bootstrap3 controls [Bootstrap 3.1.1].
Here is the HTML:
<div class="container"> <div class="row"> <div class="controls"> <div class="entry form-group col-sm-4"> <div class="input-group"> <input class="form-control" name="fields[]" type="text" placeholder="Type something"> <button class="btn btn-success btn-add" type="button"><span class="glyphicon glyphicon-plus"></span></button> </div> </div> <div class="entry form-group col-sm-4"> <div class="input-group"> <input class="form-control" name="fields[]" type="text" placeholder="Type something"> <button class="btn btn-success btn-add" type="button"><span class="glyphicon glyphicon-plus"></span></button> </div> </div> <div class="entry form-group col-sm-4"> <div class="input-group"> <input class="form-control" name="fields[]" type="text" placeholder="Type something"> <button class="btn btn-success btn-add" type="button"><span class="glyphicon glyphicon-plus"></span></button> </div> </div> </div> </div> </div>
UPDATE
I would try using a bootstrap form generator that would give me this:
<div class="tag-controls"> <div class="entry col-sm-4 form-group "> <div class="input-group"> <input class="form-control" name="tags[]" type="text" placeholder="Type something" /> <div class="input-group-btn"> <button class="btn btn-success btn-add" type="button" data-target="tag-controls"><span class="glyphicon glyphicon-plus"></span></button> </div> </div> </div> </div>
Like Shawn's answer, which I did not try, I found that most of these solutions broke when trying to apply the column size to the parent element.
source share