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

Reduce space between Form label and text box

  • Aug 12, 2020 7:18 AM UTC
  • 3 replies
  • 378 views

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 ●●●●●●
  • Answer
  • Aug 12, 2020 9:04 AM UTC

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
  • Aug 17, 2020 1:57 AM UTC

Hi Rondev
This worked perfectly. Thank you very much.


Forum|alt.badge.img+1
  • Feb 13, 2025 6:15 PM UTC

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