- Posts: 7
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
How to change css for specific questions
- UnserFranz
- Topic Author
- Offline
- New Member
Less
More
5 years 7 months ago #174285
by UnserFranz
How to change css for specific questions was created by UnserFranz
Hi,
how may I modify the css (eg background-color) for specific questions/question-title-containers, only (or assign different colors to each question)?
I wrote
in the custom.css, and added the class in the question display options menu, but it doesn't seem to be applied
Should it be
?
how may I modify the css (eg background-color) for specific questions/question-title-containers, only (or assign different colors to each question)?
I wrote
Code:
.question-title-Wald { background-color: #84bb21; }
Should it be
Code:
.question-title-container .Wald { background-color: #84bb21; }
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13675
- Thank you received: 2496
5 years 7 months ago #174296
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How to change css for specific questions
With
manual.limesurvey.org/Question_type_-_Sh...lass_.28css_class.29
ab set class to wald,
You can use
.wald .question-title-container {
background-color: #84bb21;
}
You can use
.wald .question-title-container {
background-color: #84bb21;
}
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: UnserFranz
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10115
- Thank you received: 3597
5 years 7 months ago #174299
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 How to change css for specific questions
If your question CSS class is "Wald", the rule should be something like:
Code:
.Wald .question-title-container { background-color: #84bb21; }
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- LouisGac
- Visitor
5 years 7 months ago #174304
by LouisGac
Replied by LouisGac on topic How to change css for specific questions
if you want to modify the CSS of a specific question (not a question type), you can use the question id:
#question356 { ... }
#question356 { ... }
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10115
- Thank you received: 3597
5 years 7 months ago - 5 years 7 months ago #174306
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 How to change css for specific questions
But...question CSS class is portable between surveys.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 years 7 months ago by tpartner.
The following user(s) said Thank You: DenisChenu, LouisGac, UnserFranz
The topic has been locked.
- UnserFranz
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
5 years 7 months ago #174325
by UnserFranz
Replied by UnserFranz on topic How to change css for specific questions
Aaah, quite close then.
You all are just amazing!
You all are just amazing!
The topic has been locked.