I am new to bootstrap. I have the following bootstrap form:
<form class="form-inline " style="display: inline-block">
<div class="form-group" >
<input type="text" class="form-control input-lg" id="inputEmail" placeholder="full names..."
style="margin: 25px">
</div>
<div class="form-group">
<input type="email" class="form-control input-lg" id="inputEmail" placeholder="email address..."style="margin: 25px">
</div>
<button type="submit" class="btn btn-primary mx-auto">Sign Up</button>
</form>
I want to make the text box wider: When I custom style the width then it ceases to be responsive for small windows. The width doesn’t collapse to fit the small screens.
Your suggestion below:
<div class="container">
<div class="row">
<div class="col">
<form class="form-inline " style="display: inline-block">
<div class="form-group">
<input type="text" class="form-control input-lg" id="inputEmail" placeholder="Enter full names..." style="margin: 25px;width:400px">
</div>
<div class="form-group">
<input type="email" class="form-control input-lg" id="inputEmail" placeholder="Enter email address..." style="margin: 25px;width:400px">
</div>
<button type="submit" class="btn btn-primary mx-auto">Sign Up</button>
</form>
</div>
</div>
</div>