Skip to content

problem with button customization using button_html parameter in the image-button-response plugin #778

Answered by vijaymarupudi
yuvalharr asked this question in Q&A
Discussion options

You must be logged in to vote

That's because the parent element has the inline-block style.

element {
    display: inline-block;
    margin: 0px 8px;
}

You might want to remove the inline-block part here:

html += '<div class="jspsych-image-button-response-button" style="display: inline-block; margin:'+trial.margin_vertical+' '+trial.margin_horizontal+'" id="jspsych-image-button-response-button-' + i +'" data-choice="'+i+'">'+str+'</div>';

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@yuvalharr
Comment options

@vijaymarupudi
Comment options

@yuvalharr
Comment options

Answer selected by jodeleeuw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants