Welcome to the LimeSurvey Community Forum

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

Change background colour of text display

  • kathryncarpenter
  • kathryncarpenter's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 9 months ago #223492 by kathryncarpenter
Change background colour of text display was created by kathryncarpenter
Please help us help you and fill where relevant:
Your LimeSurvey version: 3.27.24
Own server or LimeSurvey hosting: LimeSurvey hosting
Theme: Vanilla

==================

Hi,

I have a text display question presented to responders. The background of this question is grey (capture 2). I would like this to be white. I have added the following to custom.css (capture1):

.navbar {
    background color: #FFFFFF;
}

However, when I add navbar to the css class for this question the background colour doesn't change. 

Any idea where I am going wrong?      

Many thanks in advance,
Kathryn

 
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 9 months ago #223494 by Joffm
Replied by Joffm on topic Change background colour of text display
Hi,
you should use the correct syntax:

background-color : #123456;
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: holch
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 9 months ago #223505 by tpartner
Replied by tpartner on topic Change background colour of text display
I would not use .navbar - that classname is already in applied to other elements. Use a CSS class like "background-white".

Code:
.question-container.background-white {
    background-color: #FFFFFF;
}

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: DenisChenu
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose