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

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

  • Sep 29, 2022 2:16 PM UTC
  • 3 replies
  • 74 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 ●●●●●●●●
  • Sep 29, 2022 2:21 PM UTC

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


Forum|alt.badge.img+5

Thanks TomG .. Worked perfectly


SuhasM
Qualtrics Employee
Forum|alt.badge.img+16
  • Qualtrics Employee
  • Sep 30, 2022 5:05 PM UTC

TomG is a wizard at custom code! ⭐️