Reputation: 16851
My code is as follows: I want to remove the spaces between the textboxes
and button, so all 3 elements are stuck to one another. How can I get this done.
<div class="container">
<div class="row">
<div class="panel panel-default col-md-12 ">
<div class="panel-body">
<form action="#" role="form" class="form-inline">
<div class="form-group col-md-4 ">
<input type="email" class="form-control " placeholder="Email Address" required>
</div>
<div class=" form-group col-md-4 span7 ">
<input type="email" class="form-control " placeholder="Email Address" required>
</div>
<div class=" form-group col-md-4">
<button class="btn btn-primary btn-circle " type="submit">Sign up for free</button>
</div>
</form>
</div>
</div>
</div>
</div>
Output
Upvotes: 1
Views: 344
Reputation: 854
Try this code it will stuck all the elements together.
I just removed the form-group class.
<div class="container">
<div class="row">
<div class="panel panel-default col-md-12 ">
<div class="panel-body">
<form action="#" role="form" class="form-inline">
<div class=" col-md-4 ">
<input type="email" class="form-control " placeholder="Email Address" required>
</div>
<div class=" col-md-4 span7 ">
<input type="email" class="form-control " placeholder="Email Address" required>
</div>
<div class=" col-md-4">
<button class="btn btn-primary btn-circle " type="submit">Sign up for free</button>
</div>
</form>
</div>
</div>
</div>
</div>
Upvotes: 1