-
Hi all! Is it possible to make the line (in light grey) invisible? I'd like to show only the radio buttons, as the horizontal line somehow looks ugly. (At least I'd like to trim both ends..) I believe I have to tweak some lines in the codes down below (copied from jspsych-survey-likert.js), but can't figure it out myself. var html = "";
// inject CSS for trial
html += '<style id="jspsych-survey-likert-css">';
html += ".jspsych-survey-likert-statement { display:block; font-size: 16px; padding-top: 30px; margin-bottom:10px; }"+
".jspsych-survey-likert-opts { list-style:none; width:"+w+"; margin:auto; padding:10 10 35px; display:block; font-size: 25px; line-height:1.3em; }"+
".jspsych-survey-likert-opt-label { line-height: 0.9em; color: #444; }"+
".jspsych-survey-likert-opts:before { content: ''; position:relative; top:11px; /*left:9.5%;*/ display:block; background-color:#efefef; height:4px; width:100%; }"+
".jspsych-survey-likert-opts:last-of-type { border-bottom: 0; }"+
".jspsych-survey-likert-opts li { display:inline-block; /*width:19%;*/ text-align:center; vertical-align: top; }"+
".jspsych-survey-likert-opts li input[type=radio] { display:block; position:relative; top:0; left:50%; margin-left:-6px; }"
html += '</style>'; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is probably not the smoothest version but you can just change the background color: ".jspsych-survey-likert-opts:before { content: ''; position:relative; top:11px; /*left:9.5%;*/ display:block; background-color:#ffffff; height:4px; width:100%; }"+ Changing it to #ffffff makes the line white, so you can just use whatever your background color is. |
Beta Was this translation helpful? Give feedback.
This is probably not the smoothest version but you can just change the background color:
Changing it to #ffffff makes the line white, so you can just use whatever your background color is.