Hello, I am trying to create a custom form on my Moodle and I am using the following code
$mform->addElement('select', 'type', 'Question', array("Yes"=>"Yes","No"=>"No"));
This creates something like this but the label and options are displayed horizontally (showed below)
<div id="fitem_id_type" class="fitem fitem_fselect ">
<div class="fitemtitle">
<label for="id_type">Question</label></div>
<div class="felement fselect">
<select name="type" id="id_type">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
</div>
</div>
I want to either find a way to expand the label to full width or push the options below .
Is there a way to add a style to the fitemtitle div? I want this change to be done only to this page, that's why I don't want to mess with css.
is there a way to overwrite the css in this page only?