Need help in reducing the padding for image in a single select question | XM Community
Skip to main content

Need help in reducing the padding for image in a single select question

  • September 29, 2022
  • 3 replies
  • 35 views

Forum|alt.badge.img+5

Hello,
I am looking for some help to reduce the padding in a image. The padding seems to be bigger, i would like to reduce it to 10PX. However i am unable to find the right element to use in JavaScript to modify the padding. I have attached an image which shows the label / id / class for the image.
Can someone please help with the code to modify the padding for the images.
It needs to be reduced when the select the option is selected.
image.pngThanks in advance.

3 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • September 29, 2022

jQuery("#"+this.questionId+" .Selection .LabelWrapper>label").css({"padding-top":"10px","padding-bottom":"10px"});


Forum|alt.badge.img+5
  • Author
  • Level 1 ●
  • September 29, 2022

Thanks TomG .. Worked perfectly


SuhasM
Qualtrics Employee
Forum|alt.badge.img+16
  • Qualtrics Employee
  • September 30, 2022

TomG is a wizard at custom code! ⭐️