Left justify sub-questions

More
1 week 2 days ago #187622 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.
Attachments:

Please Log in or Create an account to join the conversation.

More
1 week 2 days ago #187623 by pnickel
Replied by pnickel on topic Left justify sub-questions
I meant to say "sets a RIGHT justification on anything."

Please Log in or Create an account to join the conversation.

More
1 week 2 days 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.

Please Log in or Create an account to join the conversation.

More
1 week 2 days ago #187626 by Joffm
Replied by Joffm on topic Left justify sub-questions
.ls-answers tbody .answertext {
 
    text-align: left;
 
}



Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The following user(s) said Thank You: tpartner, pnickel

Please Log in or Create an account to join the conversation.

More
1 week 1 day 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; }

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #187639 by tpartner
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.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!