Check out the LimeSurvey source code on GitHub!

Display of ranking question

7 years 10 months ago #26419 by joe_p
Hello,
I'm using Version 1.81+ (6654). I've got a ranking question that will potentially have lengthy answers, so I need it to display without cutting off characters or extending past the area I set by percentages with td width attributes in qanda.php.

In addition to that, here is some CSS I tried:
.ranking td input.text
{    width: 96%;}
 
.ranking div.answers table
{     table-layout:fixed;}
 
.ranking .select 
{     width: 100%;}

One option I found online was to use the width on the select tag (like above), then use an OnMouseOver to move the width to 200%, and an OnBlur to set it back to 100%. Would this possibly work, or is there a better solution? (Either way, when it gets to scripting, I'm a little less savvy - so I'll need a little extra help there.)

Thanks!
Joe

Please Log in to join the conversation.

7 years 10 months ago - 7 years 10 months ago #26494 by Mazi
Did you take a look at "styling questions" (manual) ?

When using javascript turn of the internal XSS filter. Check manual ->installation -> optional settings for more information.

If your approaches are successful please leave a note.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

7 years 9 months ago #26509 by joe_p
I looked at this part on the manual, it doesn't have a lot of detail that helps this specific situation.

I spent a while yesterday working on the styles, but I've had to take a break from experimenting with the styles on the ranking question and move on to other things...

Any examples that anyone might have of some styles they've used on a ranking question would be much appreciated.

Please Log in to join the conversation.

6 years 3 months ago #52238 by thanasix
Hello,

I have the same problem.
Lengthy answers are not fully displayed neither in the Choices box nor in the Ranking.

Any suggestion?
Joe, did you find any other solution than the one you've proposed.

Many thanks,

thanasis

Please Log in to join the conversation.

6 years 3 months ago #52392 by Mazi
Please always state which Limesurvey version and template you are using.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

6 years 3 months ago #52501 by thanasix
Sorry.
LS Version 1.82+ (6825).
It didn't work with default template but it works fine with others.
Thanks!

Please Log in to join the conversation.

6 years 3 months ago #52509 by Mazi
Yeah, styles pretty much depend on the HTML structure of a template.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form