Positioning two $mform text fields horizontally

Re: Positioning two $mform text fields horizontally

Mark Johnson གིས-
Number of replies: 0
Core developers གི་པར Particularly helpful Moodlers གི་པར Peer reviewers གི་པར Plugin developers གི་པར

CSS is the right answer here.  You can add it to your module's styles.css file, and use rules that just apply to that form (you can give the form an ID by passing it in the form constructor's $attributes array).

I can't tell you the exact CSS to use, but the following might be a good start:

#myformid .fitem {
width: 50%;
display: inline-block;
}