Does anyone know how to center text-entry boxes? | XM Community
Skip to main content
Is there a way to make the text-entry boxes appear in the center of the screen rather than the left side?
Assuming you are using a Text entry style question, add the following to the html of the question:



<style>

.ChoiceStructure {

text-align: center;

}

</style>



If you have multiple questions on the page and you only want to center this one, try adding the following Javascript to the Question:



Qualtrics.SurveyEngine.addOnReady(function()

{

this.questionContainer.select('.ChoiceStructure')[0].style = 'text-align: center;';

});
@AnthonyR The html worked perfectly! Thank you!
@AnthonyR - thanks for posting! All sorts of useful snippets for us Qubies 0_o

Leave a Reply