After using a table to display radio buttons with labels in the past, I am now attempting to achieve the same result using only CSS.
Is there a CSS technique that will allow me to position the label text neatly on top of the corresponding radio button? Here is the HTML code snippet:
<div class="controls">
<label class="radio">
<input type="radio" name="cfimb_5" id="id_cfimb_5_1" value="1">
Never
</label>
<label class="radio">
<input type="radio" name="cfimb_5" id="id_cfimb_5_2" value="2">
</label>
<label class="radio">
<input type="radio" name="cfimb_5" id="id_cfimb_5_3" value="3">
Sometimes
</label>
<label class="radio">
<input type="radio" name="cfimb_5" id="id_cfimb_5_4" value="4">
</label>
<label class="radio">
<input type="radio" name="cfimb_5" id="id_cfimb_5_5" value="5">
Frequently
</label>
</div>
You can view the codepen here: http://codepen.io/anon/pen/keuhl