Here is the link to the fiddle https://jsfiddle.net/be21z7wj/2/
I am trying to create a question which has a radio button with options Yes and No. Along with this, there should be a text area where user can type in reason for selecting No. As you would see in the fiddle, there are a few problems with my current code:
- The Yes and No radio buttons are overlapping
- I would like to have the radio buttons within two column widths and the text area to cover 8 column widths. But this is not working
<div class="row">
<div class="input-field col s2 m2 l2">
<label>
<input name="group1" id="radio_antibiotics_indicated_yes" type="radio" style ="vertical-align: center"/>
<span style="padding-left:24px">Yes</span>
</label>
<label>
<input name="group1" id="radio_antibiotics_indicated_no" type="radio"/>
<span style="padding-left:24px">No</span>
</label>
</div>
<div class="input-field col s8 m8 l8">
<textarea id="text_antibiotics_indicated_no" class="materialize-textarea" style="margin:0px;padding:0px" required="" aria-required="true"></textarea>
<label for="text_antibiotics_indicated_no">If ‘No’ response, write the reasons/comment</label>
</div>
</div>
</div>
How do I go about solving these?