problem with button customization using button_html parameter in the image-button-response plugin #778
-
Hello, In order to group my buttons below each other (vertically) instead of side by side (horizontally) I'm trying to use the button_html parameter in the image-button-response plugin. In order to do so I have made a new css class in the 'jspsych.css' file. I have set the 'display' property in the css class to 'block' as to my understanding this should make the buttons appear one below the other. For some reason it just doesn't work, and the buttons keep appearing one next to the other horizontally . Any help will be really appreciated! css:
the image-button-response trial as appearing inside the timeline:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
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: |
Beta Was this translation helpful? Give feedback.
That's because the parent element has the inline-block style.
You might want to remove the inline-block part here:
jsPsych/plugins/jspsych-image-button-response.js
Line 133 in 8398008