Align min/max texts in scale grid questions

From Catglobe Wiki
Revision as of 08:32, 9 March 2009 by Catglobe (talk | contribs) (Code)
Jump to: navigation, search

Challenge

In order to make scale grid questions look nicer
As a questionnaire creator
I want to align min/max texts for all sub questions
Example

BEFORE
Sg2.png

AFTER
SG1.png

Solution

Make the text cells have the same width

Code

quest.onInit = function()
{
	$("td:contains('Min')").width("200px");
	$("td:contains('Max')").width("200px");
	$("td:contains('Longer')").width("200px");
}