Skip to content
Discussion options

You must be logged in to vote

Hi @sonhkim! The comments on this stack overflow question mostly suggest setting the height and width of the input[type="radio"] elements. And if you add vertical-align: middle then the larger radio buttons will be centered with the option text, rather than sticking out above it.

If you want to edit the survey-likert plugin, then you can add this to the html string:

'input[type="text"] {height: 35px; width: 35px; vertical-align: middle;}'

Or you could add some <style> tags to the <head> section of your HTML file, like this:

<head>
  <script src="jspsych-6.1.0/jspsych.js"></script>
  ...
  <style>
    input[type="radio"] {height: 35px; width: 35px; vertical-align: middle;}
  </style>
</head>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sonhkim
Comment options

Answer selected by sonhkim
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