How to center-align text entry forms? | XM Community
Skip to main content
Solved

How to center-align text entry forms?

  • April 11, 2019
  • 2 replies
  • 170 views

Forum|alt.badge.img+1
I need to take the text entry box to the center of the page rather than the left side of the page (attached screenshot. Can you please guide me with that? !

Best answer by Anonymous

Hi @busmarketing, Assuming you are using Text entry -> single line question Paste the below code in the js(OnReady) of question jQuery("#"+this.questionId+" .ChoiceStructure").css("text-align","center");

2 replies

  • Answer
  • April 11, 2019
Hi @busmarketing, Assuming you are using Text entry -> single line question Paste the below code in the js(OnReady) of question jQuery("#"+this.questionId+" .ChoiceStructure").css("text-align","center");

Forum|alt.badge.img+1
Thanks a lot @shashi !