Hi All,
I’m trying to add space between my MC text box entry options and I have tried javascript, custom css and html but it does not seem to work. I increased space to “60” instead of 10 in the following code nd tried to “no wrap” otpion as well. Highlighted what I’ve been tryin to change. Does not help does someone know how to fix the code in Qualtrics? I’m not a coder. this was off some community posts.
Qualtrics.SurveyEngine.addOnload(function() {
// Adjust the following value (in pixels) to control the space between the options
var spaceBetweenOptions = 10;
// Create a style tag and add it to the head of the document
var styleTag = document.createElement('style');
styleTag.type = 'text/css';
document.head.appendChild(styleTag);
// Add CSS rules to the style tag to increase the spacing between the options
var css = '';
css += 'div=id^=QID]/id$=_MC] .q-checkbox, diviid^=QID].id$=_MC] .q-radio {';
css += ' margin-bottom: ' + spaceBetweenOptions + 'px;';
css += '}';
css += 'divsid^=QID];id$=_MC] .q-radio, divdid^=QID]did$=_MC] .q-checkbox {';
css += ' display: inline-block;';
css += ' white-space: nowrap;';
css += '}';
styleTag.appendChild(document.createTextNode(css));
});