How can I center drop down questions? | XM Community
Skip to main content

Is there a way to center scuh drop down questions so they show up in the middle of the page instead of left?
image.png

Use the below code:
jQuery("#"+this.questionId+" .QuestionBody").css("text-align","center");


sadly it doesn't work, but thanks anyway 🙂


image.pngCan you show where you have pasted the code.


sure I pasted in javascript:
image.png


Just click on the clear button of the Add javascript pop up and paste it as below:
image.png


than you, works perfectly! 🙂


rondev How would I change the javascript to center a form field question? The code above worked for me when doing a drop-down but didn't work for a form-field text entry question.


Leave a Reply