0

enter image description here

This is what I have now with Bootstrap 2.

This is what Bootstrap 3 comes up with:

enter image description here

And I have this code:

<div class="row">
   <div class="col-sm-4"><input type="text" class="form-control" /></div>
   <div class="col-sm-4"><select class="form-control"><option value="2">1</option></select></div>
   <div class="col-sm-4"><input type="text" class="form-control" /></div>
</div>

I cannot figure out how to tighten up the inputs so they are like they were in Bootstrap 2.

What do I do?

2
  • could you add a fiddle? Sep 27, 2014 at 19:26
  • you have additional code affetcing the output, I tested it in Bootply and only see 3 input fields
    – Devin
    Sep 27, 2014 at 19:29

1 Answer 1

2

You could tighten up the gutter...

<style>
    .tight-gutter {
        padding: 0 2px;
    }
</style>

<div class="row">
    <div class="col-sm-4 tight-gutter"><input type="text" class="form-control"></div>
    <div class="col-sm-4 tight-gutter"><select class="form-control"><option value="2">1</option></select></div>
    <div class="col-sm-4 tight-gutter"><input type="text" class="form-control"></div>
</div>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.