Spacing between slider and labels | XM Community
Skip to main content
Question

Spacing between slider and labels

  • March 19, 2022
  • 1 reply
  • 529 views

Hello!
I'm attempting to reduce the distance between the slider scale and the labels since there is now a substantial amount of gap between the slider and the labels, which makes the link between the slider and the labels unclear to the responder. Is there anybody who has any suggestions?
I included the following code in the custom CSS, however, it removed the slider statement. Thanks.
.JFEScope .Skin .q-slider .statement-container { display: none; }
image.png

1 reply

Rudi
QPN Level 3 ●●●
Forum|alt.badge.img+16
  • QPN Level 3 ●●●
  • March 24, 2022

Hi Maria,

this below
image.png
can be achieved by this js:

Qualtrics.SurveyEngine.addOnload(function()
{
let statementContainer = document.getElementsByClassName('statement-container')
let statementContainerCopy = statementContainer[0]
let legend = document.getElementsByTagName('legend')
legend[0].insertAdjacentHTML('afterend', statementContainer[0].innerHTML);
statementContainer[0].remove()
});
Best regards

Rudi