oTree Forum >

Align Text next to form fields

#1 by lmayr

Hi Everyone, 

I have a relatively simple question, I would like to align the text of the form fields next to the form field, as opposed to above, so it has the appearance of 

"question xxx" [Form Field]


Please let me know if there is a simple way to do this, I would appreciate any help.

#2 by Daniel_Frey

Yes, there is, if you haven't figured it out yourself yet.

You can use the flex-property:

 <div style="display: flex">
     <div>Your question / {{ form.yourfield.label }}</div>
     <div> {{ form.yourfield }} </div>
 </div>

Write a reply

Set forum username