Answer the question
In order to leave comments, you need to log in
How to make a form in Bootstrap in which the password field and the button will be on the same line?
I just need the elementary form code on the Bootstrap framework as in the picture. So that the password field and the button are on the same line. Thank you!
Answer the question
In order to leave comments, you need to log in
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div>
<div class="container">
<div class="row">
<input type="text" class="form-control" placeholder="Login">
</div>
<div class="row">
<div class="input-group">
<input type="text" class="form-control" placeholder="Password">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Log in</button>
</span>
</div>
</div>
<div class="container">
<div class="row">
<input type="text" class="form-control myinput" placeholder="Login">
</div>
<div class="row">
<div class="input-group">
<input type="text" class="form-control" placeholder="Password">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Log in</button>
</span>
</div>
</div>
.row .myinput{
width:200px;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question