- Posts: 10
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Help changing formatting of subquestion text
- mikeg
- Topic Author
- Offline
- New Member
Less
More
8 years 7 months ago #124253
by mikeg
Help changing formatting of subquestion text was created 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,
Here's what I'd like to change,
Attachments:
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
8 years 7 months ago #124255
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Help changing formatting of subquestion text
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.
- mikeg
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 1
8 years 7 months ago #124256
by mikeg
Replied by mikeg on topic Help changing formatting of subquestion text
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
8 years 7 months ago #124257
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Help changing formatting of subquestion text
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.
- mikeg
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 1
8 years 7 months ago #124259
by mikeg
Replied by mikeg on topic Help changing formatting of subquestion text
The second question is "Multiple Short Text".
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
8 years 7 months ago #124260
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Help changing formatting of subquestion text
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
8 years 7 months ago #124266
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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:
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)
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.
Attachments:
The following user(s) said Thank You: mikeg
The topic has been locked.
- mikeg
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 1
8 years 7 months ago #124267
by mikeg
Replied by mikeg on topic Help changing formatting of subquestion text
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
8 years 7 months ago #124268
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Help changing formatting of subquestion text
Hi Tpartner!
Thanks for the clarification. I didn't know this option. Everyday something new with Limesurvey.
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.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
8 years 7 months ago - 8 years 7 months ago #124275
by jelo
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
Replied by jelo on topic Help changing formatting of subquestion text
BTW: Firefox will display two rows, even if rows="1" is set for the textarea in the html code.tpartner wrote: (@holch, placing any value in the "Display rows" field will switch the question from text inputs to textareas which allow multiple lines)
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
8 years 7 months ago #124282
by tpartner
You could set the height with CSS:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Help changing formatting of subquestion text
I believe this is a Firefox bug - it has been reported many times over the years....but two rows will be displayed in Firefox. Not sure if that is a problem of class="textarea".
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.
- anaidgh
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
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
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.