Bootstrap CSS Classes

Bootstrap CSS class .form using the grid

<form>
  <div class="form-group row">
    <label for="inputEmail3" class="col-sm-2 col-form-label">Email</label>
    <div class="col-sm-10">
      <input type="email" class="form-control" id="inputEmail3" placeholder="Email">
    </div>
  </div>
  <div class="form-group row">
    <div class="col-sm-10 offset-sm-2">
      <button type="submit" class="btn btn-primary">Sign in</button>
    </div>
  </div>
</form>

Preview

Are you tired of writing HTML by hand?

More Bootstrap CSS classes in Forms category

© 2024 Shuffle. All rights reserved.