I am working in Bootstrap 3.0, trying to create a Google-style search box that has a "Search Help" link after the "Submit" button.
My problem: when I go responsive, I lose the offset fields, and the button wraps on the next line.
<div class="row search"> <div class="col-md-8 col-md-offset-2"> <form class="form-inline" role="form"> <div class="form-group"> <label class="sr-only" for="">Enter search terms</label> <input type="search" class="form-control" id="k" name="k" placeholder="Enter search terms"> <input id="cn" name="cn" type="hidden" value="false" /> </div> <button type="submit" id="s" class="btn btn-default"> <span class="glyphicon glyphicon-search"></span> </button> <a href="#">Search Help</a> </form> </div> </div>
Cf: http://jsfiddle.net/redo1134/su3eq/2/
Everything is fine at> 991px. But at 991 and below, I am losing bias.
This, of course, is related to the #media (min-width: 992px) media request #media (min-width: 992px) in bootstrap.css, but I don't know how to save the offset.
And even worse: when the preview window has a <768px button and the link is moved to the next line.
Again, I refer to bootstrap.css and the min-width: 768px , but I don't know how to save the input, button, and text together.
Thanks!
source share