Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Put the answer and question at the same line

Put the answer and question at the same line 1 year 5 months ago #97285

  • boyan
  • boyan's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 49
  • Thank you received: 9
  • Karma: 1
Version 1.91+ Build 11804
The administrator has disabled public write access.

Put the answer and question at the same line 1 year 5 months ago #97286

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4362
  • Thank you received: 827
  • Karma: 381
In that case, you will need to use the question ID instead of the {QID} placeholder.

Student Name:
<script type="text/javascript" charset="utf-8">	
	$(document).ready(function(){
		$('#question941').addClass('inlineAnswer');
	});
</script>


Teacher Name:
<script type="text/javascript" charset="utf-8">	
	$(document).ready(function(){
		$('#question942').addClass('inlineAnswer');
	});
</script>
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: boyan

Put the answer and question at the same line 1 year 5 months ago #97287

  • boyan
  • boyan's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 49
  • Thank you received: 9
  • Karma: 1
It worked beautifully! Thanks!
The administrator has disabled public write access.

Put the answer and question at the same line 1 year 5 months ago #97288

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4362
  • Thank you received: 827
  • Karma: 381
Add this to template.css to align them better:
.inlineAnswer p.question {
	margin: 0;
}
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.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.106 seconds
Donation Image