Back to Snippets List

form - Form Spacing

<!-- Use .form-group to create spacing when wrapping label and input pairs -->
<div class="form-group">
  <label for="first-name-2">
      <span class="form-label">First name</span>
  </label>
  <input class="form-control" id="first-name-2" type="text">
</div>
<div class="form-group">
  <label for="last-name-2">
      <span class="form-label">Last name</span>
  </label>
  <input class="form-control" id="last-name-2" type="text">
</div>