Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Align min/max texts in scale grid questions

From Catglobe Wiki
Revision as of 07:21, 9 March 2009 by Catglobe (talk | contribs) (New page: ==Challenge== In order to make scale grid questions look nicer<br/> As a questionnaire creator<br/> I want to align min/max texts for all sub questions<br/> <b>Example</b><br/> BEFORE<br/...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

AFTER

Solution

Make the text cells have the same width

Code

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