Quantcast
Viewing all articles
Browse latest Browse all 17529

How can I change the background color for an individual question block? - by: tpartner

See here for info on inserting JavaScript - manual.limesurvey.org/Workarounds:_Manip...tc..29_in_LimeSurvey

Ben;s script will add a style rule to the <head> section but if you want to add a class to the question as in the above workaround, insert this script into the question text (don't modify anything except "header-red"):
<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		$('#question{QID}').addClass('header-red');
	});
</script>

Then, if using the default template, you can insert something like this at the end of template.css:
.header-red td.questiontext {
	background-color: #FF0000;
}

Viewing all articles
Browse latest Browse all 17529

Trending Articles