4
I have a form-inline
in bootstrap, as I control the width of input without losing responsiveness?
Example w3schools form-inline bootstrap
<form class="form-inline" role="form">
<div class="form-group">
<label for="email">Email:</label>
<input type="email" class="form-control" id="email" placeholder="Enter email">
</div>
<div class="form-group">
<label for="pwd">Password:</label>
<input type="password" class="form-control" id="pwd" placeholder="Enter password">
</div>
<div class="checkbox">
<label><input type="checkbox"> Remember me</label>
</div>
<button type="submit" class="btn btn-default">Submit</button>
I’ve already tried style="width: 300px"
in input and works, increases the size of the field, but loses responsiveness, I have tried to put the <div class="form-group">
within a tag <div class="col-sm-5">
, for in that way a form-horizontal
works, IE, just does not work in the form-inline
In short, I want exactly the functionality of a form inline
, the only problem is I can’t control the width
inputs without losing responsiveness.
I’m not sure I quite understand your question, but from what I understand what you want to do here is give one
width:300px;
to input -<input class="form-control" />
to be your initial size, but at the same time not lose your responsiveness is this?– Chun
That though I know if I specify the
width:300px;
I know you lose responsiveness, I mean, the right thing to do would be to specify the size of the column, but that doesn’t work when you use theform-inline
– Rodrigo Rodrigues
Puts the
form
within a<div class="row"> </div>
and then put a<div class="col-md-4"></div>
outside theinputs
(including thebutton
). Replace 4 with the size you want, remembering that the sum has to give 12.– dHEKU