title: How to display multiple checkboxes both horizontally and vertically css
body: <p>I'm trying to set a collection of checkboxes both horizontally and vertically, but they don't come out uniformally.
  The labels for each checkbox can vary in size, e.g. one label for a checkbox says "International Casaulty Treaty" whereas another only says WIP.</p>
  
  <p>I was going over this vertical example here.
  <a href="http://jsfiddle.net/zcuLgbxt/" rel="nofollow noreferrer">http://jsfiddle.net/zcuLgbxt/</a></p>
  
  <p>How to can I neatly arrange them so they are all in alignment both vertically and horizontally?
  Thanks very much in advance!</p>
  
  <p>Here is my simple HTML/CSS</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-css lang-css prettyprint-override"><code>li {
      margin: 5px;
  }
  
  input {
      width: 20px;
      background-color: blue;
      position: relative;
      left: 200px;
      vertical-align: middle;
  }
  
  .vertical-list {
      width: 200px;
      position: relative;
      left: -20px;
      display: inline-block;
      vertical-align: middle;
  }
  
  li{
      list-style:none;
  }
  
  .horizontal-list{
      display: inline;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;center&gt;    
    &lt;ul&gt;        
        &lt;li&gt;
            &lt;input type="checkbox" &gt;
            &lt;label  class="vertical-list"&gt; label1  label1  label1&lt;/label&gt;
            &lt;input type="checkbox"  &gt;
            &lt;label class="horizontal-list" for="myid2"&gt;label2&lt;/label&gt;
        &lt;/li&gt;
        &lt;li&gt;
            &lt;input type="checkbox" &gt;
            &lt;label class="vertical-list" &gt;label2label2label2&lt;/label&gt;
            &lt;input type="checkbox"&gt;
            &lt;label class="horizontal-list" for="myid2"&gt;label2label2&lt;/label&gt;
  
        &lt;/li&gt;
  
        &lt;li&gt;
            &lt;input type="checkbox"  &gt;
            &lt;label class="vertical-list" &gt; label4  label4  label4&lt;/label&gt;
            &lt;input type="checkbox"  &gt;
            &lt;label class="horizontal-list" &gt;label2&lt;/label&gt;
        &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/center&gt;</code></pre>
  </div>
  </div>
  </p>