Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Help changing formatting of subquestion text

More
8 years 7 months ago #124253 by mikeg
Below is a screenshot of a survey I am using. I would like to improve the layout of the page and have been looking at the templates using the Template Editor, but have a very limited understanding of CSS and which terms refer to which aspect of the questions. As areult, any help would be greatly appreciated.





Here's what I'd like to change,
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #124255 by holch
You didn't say what you would like to change. difficult to help this way... ;-)

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
8 years 7 months ago #124256 by mikeg
Yes, indeed. Sorry about that.


Here's what I'd like to change,

Have the subquestion text left justified in first question

Increase the width of the area for the subquestion text in the second question.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #124257 by holch
But what kind of question is the second one? I am not aware of a multipe text question with text boxes that are so big.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
8 years 7 months ago #124259 by mikeg
The second question is "Multiple Short Text".
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #124260 by holch
But you increased the space via CSS, because multiple short text looks totally different (smaller text boxes), right?

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #124266 by tpartner
Replied by tpartner on topic Help changing formatting of subquestion text
Assuming you are using version 2.05 or better.

It looks like you're using a copy of the default template so...

1) Add this to the end of template.css:
Code:
#limesurvey table.question tbody th.answertext, 
#limesurvey table.question tbody th.arraycaptionleft {
  text-align: left;
}

2) You can set the number of rows and width for a textarea in the advanced question settings:



(@holch, placing any value in the "Display rows" field will switch the question from text inputs to textareas which allow multiple lines)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: mikeg
The topic has been locked.
More
8 years 7 months ago #124267 by mikeg
Nope. I set the 'input box width' in the 'advanced settings' part of the normal web interface. I now see that I can decrease that number from 80 and I get more room for the question text, so that's fixed. (Silly me.)
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #124268 by holch
Hi Tpartner!

Thanks for the clarification. I didn't know this option. Everyday something new with Limesurvey. ;-)

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
8 years 7 months ago - 8 years 7 months ago #124275 by jelo

tpartner wrote: (@holch, placing any value in the "Display rows" field will switch the question from text inputs to textareas which allow multiple lines)

BTW: Firefox will display two rows, even if rows="1" is set for the textarea in the html code.
E.g. questiontype "Long text"
When setting display rows to one, the html code is e.g.
<textarea class="textarea" name="229356X2X15" id="answer229356X2X15" rows="1" cols="40"
but two rows will be displayed in Firefox. Not sure if that is a problem of class="textarea". I used the default template in LS 2.05+ and LS 2.06+. One row seems not possible. Even old IE 8 shows one row.

Somebody might ask, why one row is needed. Since Limesurvey won't allow a simple form creation, where you need a mix of dropdown fields and textfields, I wanted to create dedicated onerow textbox questions to get a cleaner look in combination with a dropdown single choice question. And no workaround should be needed.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 8 years 7 months ago by jelo.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #124282 by tpartner
Replied by tpartner on topic Help changing formatting of subquestion text

...but two rows will be displayed in Firefox. Not sure if that is a problem of class="textarea".

I believe this is a Firefox bug - it has been reported many times over the years.

You could set the height with CSS:
Code:
textarea[rows="1"] {
  height: 1.2em;
}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
4 years 7 months ago #187863 by anaidgh
Replied by anaidgh on topic Help changing formatting of subquestion text
Hi,

I had a drop down matrix, so i was wondering if I can put the first word of my anwers option in black.

Also I had another question, in a normal matrix, can the text size be changed?
Regards
Attachments:
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose