- Posts: 31
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Left justify sub-questions
- pnickel
- Topic Author
- Offline
- Junior Member
Less
More
4 years 8 months ago #187622
by pnickel
Left justify sub-questions was created by pnickel
I must be doing something wrong. On an array question (flexible) I want all my sub-questions to look just like the question stems of single-response and mult-response questions. I've gotten my font family and font size just like I want, but the sub-questions are all _right_ justified!
I have added in Custom.css "{ text-align:left }" in the following styles:
.question-container
.question-item
.answertext
.answer-item
.answers-list
.subquestions-list
.text-list
.questions-list
.array-flexible-row
.questionF
Yet still no left-justified question stems in array-type questions! And I can't find any reference in theme.css where any style there sets a left-justification on anything.
I've included a screen shot from part of a screen of my survey to show what I have.
I have added in Custom.css "{ text-align:left }" in the following styles:
.question-container
.question-item
.answertext
.answer-item
.answers-list
.subquestions-list
.text-list
.questions-list
.array-flexible-row
.questionF
Yet still no left-justified question stems in array-type questions! And I can't find any reference in theme.css where any style there sets a left-justification on anything.
I've included a screen shot from part of a screen of my survey to show what I have.
Attachments:
The topic has been locked.
- pnickel
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 1
4 years 8 months ago #187623
by pnickel
Replied by pnickel on topic Left justify sub-questions
I meant to say "sets a RIGHT justification on anything."
The topic has been locked.
- pnickel
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 1
4 years 8 months ago #187624
by pnickel
Replied by pnickel on topic Left justify sub-questions
PS I also meant to add that I can work around this by adding <p style="text-align:left"> ... </p> to every questions stem ("sub-question") in an array. This is quite burdensome and I'd like not to have to insert html styles into every question.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12902
- Thank you received: 3967
4 years 8 months ago #187626
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Left justify sub-questions
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: tpartner, pnickel
The topic has been locked.
- pnickel
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 1
4 years 8 months ago #187630
by pnickel
Replied by pnickel on topic Left justify sub-questions
Can you help me learn something I must not know about css?
Why does
.ls-answers tbody .answertext { text-align: left; }
work, but none of the following (separate or together) work?
.ls-answers tbody { text-align: left; }
.ls-answers { text-align: left; }
.answertext { text-align: left; }
Why does
.ls-answers tbody .answertext { text-align: left; }
work, but none of the following (separate or together) work?
.ls-answers tbody { text-align: left; }
.ls-answers { text-align: left; }
.answertext { text-align: left; }
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
4 years 8 months ago #187639
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 Left justify sub-questions
You will have to look at the original rule that aligns right.
The "weight" of a CSS rule depends on the specificity of the selector. So, a rule with a less specific selector like your examples will be overruled by a rule with a more specific selector.
The "weight" of a CSS rule depends on the specificity of the selector. So, a rule with a less specific selector like your examples will be overruled by a rule with a more specific selector.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.