title: Trying to display many radio buttons as columns - getting weird output
body: <p><a href="https://jsfiddle.net/7s1410hu/" rel="nofollow noreferrer"><strong>JSFiddle here.</strong></a></p>
  
  <p>I have a <code>div</code> containing many radio buttons. I want a way to do this: Only 4 radio buttons are displayed in one column, after which the next 4 of the radio buttons are shown in the next column, and so on...</p>
  
  <p>From my SO search, I found this way <a href="https://stackoverflow.com/questions/12332528/how-to-display-list-items-as-columns#answer-12332549">from this question</a>:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="true" data-console="true" data-babel="false">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.mdl-radio {
    display: block;
    margin: 15px auto;
  }
  
  .mdl-radio,
  .choose-message-caption {
    margin: 25px;
  }
  
  .radiobuttons-container {
    height: 100vh;
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
  }
  
  label.mdl-radio {
    display: inline-block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="radiobuttons-container"&gt;
  
    &lt;label for="sacha" class="mdl-radio mdl-js-radio"&gt;
      &lt;input id="sendAuthenticationInfo" class="mdl-radio__button" type="radio" name="map-message" value="sacha" /&gt; 
      &lt;span class="mdl-radio__label"&gt;Sacha&lt;/span&gt;
  &lt;/label&gt;
  
    &lt;label for="bob" class="mdl-radio mdl-js-radio"&gt;
      &lt;input id="bob" class="mdl-radio__button" type="radio" name="map-message" value="bob" /&gt;
      &lt;span class="mdl-radio__label"&gt;Bob&lt;/span&gt;
  &lt;/label&gt;
  
    &lt;label for="marley" class="mdl-radio mdl-js-radio"&gt;
      &lt;input id="marley" class="mdl-radio__button" type="radio" name="map-message" value="marley" /&gt;
      &lt;span class="mdl-radio__label"&gt;Marley&lt;/span&gt;
  &lt;/label&gt;
  
    &lt;label for="canny" class="mdl-radio mdl-js-radio"&gt;
      &lt;input id="canny" class="mdl-radio__button" type="radio" name="map-message" value="canny" /&gt;
      &lt;span class="mdl-radio__label"&gt;Canny&lt;/span&gt;
  &lt;/label&gt;
  
    &lt;label for="amy" class="mdl-radio mdl-js-radio"&gt;
      &lt;input id="amy" class="mdl-radio__button" type="radio" name="map-message" value="amy" /&gt;
      &lt;span class="mdl-radio__label"&gt;Amy&lt;/span&gt;
  &lt;/label&gt;
  
    &lt;label for="popye" class="mdl-radio mdl-js-radio"&gt;
      &lt;input id="popye" class="mdl-radio__button" type="radio" name="map-message" value="popye" /&gt;
      &lt;span class="mdl-radio__label"&gt;Popye&lt;/span&gt;
  &lt;/label&gt;
  
    &lt;label for="insider" class="mdl-radio mdl-js-radio"&gt;
      &lt;input id="insider" class="mdl-radio__button" type="radio" name="map-message" value="insider" /&gt;
      &lt;span class="mdl-radio__label"&gt;Insider&lt;/span&gt;
  &lt;/label&gt;
  
    &lt;label for="dogma" class="mdl-radio mdl-js-radio"&gt;
      &lt;input id="dogma" class="mdl-radio__button" type="radio" name="map-message" value="dogma" /&gt;
      &lt;span class="mdl-radio__label"&gt;Dogma&lt;/span&gt;
  &lt;/label&gt;
  
    &lt;label for="rowdy" class="mdl-radio mdl-js-radio"&gt;
      &lt;input id="rowdy" class="mdl-radio__button" type="radio" name="map-message" value="rowdy" /&gt;
      &lt;span class="mdl-radio__label"&gt;Rowdy&lt;/span&gt;
  &lt;/label&gt;
  
    &lt;label for="albumin" class="mdl-radio mdl-js-radio"&gt;
      &lt;input id="albumin" class="mdl-radio__button" type="radio" name="map-message" value="albumin" /&gt;
      &lt;span class="mdl-radio__label"&gt;Albumin&lt;/span&gt;
  &lt;/label&gt;
  
    &lt;label for="donna" class="mdl-radio mdl-js-radio"&gt;
      &lt;input id="donna" class="mdl-radio__button" type="radio" name="map-message" value="donna" /&gt;
      &lt;span class="mdl-radio__label"&gt;Donna&lt;/span&gt;
  &lt;/label&gt;
  
    &lt;label for="eli" class="mdl-radio mdl-js-radio"&gt;
      &lt;input id="eli" class="mdl-radio__button" type="radio" name="map-message" value="eli" /&gt;
      &lt;span class="mdl-radio__label"&gt;Eli&lt;/span&gt;
  &lt;/label&gt;
  
    &lt;label for="rose" class="mdl-radio mdl-js-radio"&gt;
      &lt;input id="rose" class="mdl-radio__button" type="radio" name="map-message" value="rose" /&gt;
      &lt;span class="mdl-radio__label"&gt;Rose&lt;/span&gt;
  &lt;/label&gt;
  
  &lt;/div&gt;
  &lt;!-- .radiobuttons-container --&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>The problem is that as I drag the JSFiddle output panel's left edge to change its width, the output is displayed in multiple columns in a weird way.</strong></p>
  
  <p><strong>And when I wrote a test program in my XAMPP localhost, the output was <em>this</em> weird:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/kqNnl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kqNnl.png" alt="enter image description here"></a></p>
  
  <p>So what is the solution for my problem.</p>