Answers for "inline forms in bootstrap"

0

Bootstrap inline your form with Bootstrap

<form class="form-inline py-3">
  <input type="text" class="form-control"/>
  <input type="text" class="form-control"/>
  <button type="submit" class="btn btn-primary">Submit</button>
</form>
Posted by: Guest on September-15-2021
4

bootstrap form

<form>
  <div class="form-group row">
    <label for="staticEmail" class="col-sm-2 col-form-label">Email</label>
    <div class="col-sm-10">
      <input type="text" readonly class="form-control-plaintext" id="staticEmail" value="[email protected]">
    </div>
  </div>
  <div class="form-group row">
    <label for="inputPassword" class="col-sm-2 col-form-label">Password</label>
    <div class="col-sm-10">
      <input type="password" class="form-control" id="inputPassword" placeholder="Password">
    </div>
  </div>
</form>
Posted by: Guest on May-08-2020
1

bootstrap forms

Example of .form-group
<form>
 <div class=”form-group”>
 <label for=”exampleInputEmail1”>Email 

address</label>
 <input type=”email” class=”form-control” id=”exampleInputEmail1” ariadescribedby=”emailHelp” placeholder=”Provide email”>
 </div>
 <div class=”form-group”>
 <label for=”exampleInputPassword1”>Your password</label>
 <input type=”password” class=”form-control” id=”exampleInputPassword1”
placeholder=”Password”>
 </div>
 <div class=”form-group form-check”>
 <input type=”checkbox” class=”form-check-input” id=”exampleCheck1”>
 <label class=”form-check-label” for=”exampleCheck1”>Remember me</label>
 </div>
 <button type=”submit” class=”btn btn-primary”>Submit</button>
</form>
.form-control
Use this class to style all textual form controls such as user input, titles, etc.
<form>
 <div class=”form-group”>
 <label for=”exampleFormControlInput1”>Email address</label>
 <input type=”email” class=”form-control” id=”exampleFormControlInput1”
placeholder=”[email protected]”>
 </div>
.form-control-file
Add this class whenever you need to provide the user with an option to upload a file to the form.
<input type=”file” class=”form-control-file” id=”exampleFormControlFile1”>
.form-control-lg and .form-control-sm.
Create a visual hierarchy within your form by adding .form-control-lg to make bigger input areas and .form-control-sm to
make smaller ones.
<input class=”form-control form-control-lg” type=”text” placeholder=”.form-controllg”>
<input class=”form-control form-control-sm” type=”text” placeholder=”.form-controlsm”>
Posted by: Guest on January-05-2021

Browse Popular Code Answers by Language