Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

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

buttons radio and multiple choice questions in printable version of LS 3 years 7 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: 3 years 7 months ago by apprenti.
The administrator has disabled public write access.

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

  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 6570
  • Thank you received: 1477
  • Karma: 579
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;
}


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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 3 years 7 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 3 years 7 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.
Time to create page: 0.212 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form