title: Checkbox Horizontal Alignment using BootStrap 3
body: <p>I have a Thymeleaf/Bootstrap 3 view that contains the following piece of code to iterate my list of checkboxes and displays them vertically:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" /&gt;
  &lt;div class="row"&gt;
    &lt;div class="form-group-lg col-xs-5"&gt;
      &lt;label class="control-label" for="facilities"&gt;Facilities&lt;/label&gt;
      &lt;div class="form-group-lg"&gt;
        &lt;div th:each="facility : ${facilities}"&gt;
          &lt;input type="checkbox" th:field="*{checkedItems}" th:value="${facility}" /&gt;
          &lt;label class="checkbox-inline" th:text="${facility}"&gt;&lt;/label&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/Nae79.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nae79.png" alt="enter image description here"></a> </p>
  
  <p>I would like to display the checkboxes in groups of 3 horizontally like this. Any ideas?</p>
  
  <p><a href="https://i.stack.imgur.com/L2sFt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L2sFt.png" alt="enter image description here"></a></p>