Welcome, Guest
Username: Password: Remember me

TOPIC: buttons radio and multiple choice questions in printable version of LS

buttons radio and multiple choice questions in printable version of LS 2 years 4 months ago #95466

  • apprenti
  • apprenti's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
Hiii,

In the printable version of LS, The positioning of buttons radio or multiple choice questions is in 1 column. I want to change it in many colums like that:

[url=http://hdvwww10-test/limesurvey/index.php/survey/index/action/previewquestion/sid/495136/gid/32/qid/880][/url]

In fact it's possible in electronic version but not in printable version

Thanks!!!
Attachments:
Last Edit: 2 years 4 months ago by apprenti.
The administrator has disabled public write access.

buttons radio and multiple choice questions in printable version of LS 2 years 4 months ago #95494

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5111
  • Thank you received: 1049
  • Karma: 440
You can do that by modifying print_template.css.

Add something like this (for the default template):
.multiple-opt .q-answer ul:after {  /* Clear the floats */
	content: ""; 
	display: block; 
	clear: both; 
	height: 0; 
	visibility: hidden; 
} 
 
.multiple-opt .q-answer li {
	float: left;
	padding: 0 10px;
	text-align: center;
}
 
.multiple-opt .q-answer li img {
	display: block;
	margin: 0 auto;
}


This message has an attachment image.
Please log in or register to see it.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: mfaber

buttons radio and multiple choice questions in printable version of LS 2 years 4 months ago #95521

  • mfaber
  • mfaber's Avatar
  • Offline
  • Expert Lime
  • Posts: 86
  • Thank you received: 22
  • Karma: 4
That's sweet! Belongs in the manual, i think!
The administrator has disabled public write access.

buttons radio and multiple choice questions in printable version of LS 2 years 3 months ago #95711

  • apprenti
  • apprenti's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
Thanks :)
It's good with this code

.multiple-opt .q-answer ul:after { /* Clear the floats */
content: "";
display: block;
clear: both;
height: 0;
visibility: hidden;
}

.multiple-opt .q-answer li {
float: left;
padding: 0 10px;
text-align: center;
}

/*.multiple-opt .q-answer li img {
display: block;
margin: 0 auto;
}*/
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.165 seconds