Positioning two $mform text fields horizontally

Re: Positioning two $mform text fields horizontally

by Mark Johnson -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of 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;
}
Average of ratings: Useful (1)