Reduce space between Form label and text box | XM Community
Skip to main content
Solved

Reduce space between Form label and text box


How do I reduce the space between the Form label and the answer box. Going to inspect, the only element(?) that highlights the label and the space is - there's no class for the label. (Also, I'm not sure if it makes a difference but the answer boxes have an autocomplete list attached to them.)
image.pngThanks

Best answer by rondev

Put this code in the JS of form question:
jQuery("#"+this.questionId+" .ChoiceStructure table tbody tr:eq(0) td:eq(0)").css("width","5%");

View original

3 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • 1449 replies
  • Answer
  • August 12, 2020

Put this code in the JS of form question:
jQuery("#"+this.questionId+" .ChoiceStructure table tbody tr:eq(0) td:eq(0)").css("width","5%");


  • Author
  • 3 replies
  • August 17, 2020

Hi Rondev
This worked perfectly. Thank you very much.


Forum|alt.badge.img+1
  • 1 reply
  • February 13, 2025

Worked for me as well.  4 years old but thanks!


Leave a Reply