How to set question font attributes in css file

More
1 month 1 day ago - 1 month 1 day ago #159675 by william71
william71 created the topic: How to set question font attributes in css file
Hello,
this is my first question here and also the first time I use limesurvey.

I use the default: news_paper.css

I need to tweak font settings of both questions and answers.

So far, I tweaked the following section of (my copy of) "news_paper.css":
body {
  font-family: "News Cycle", "Arial Narrow Bold", sans-serif;
  font-size: 20px;
  line-height: 1.42857143;
  color: #222222;
  background-color: #ffffff;
}

Changing
font-family
, and
font-size
affected both questions and answers.
However, changing
color
did non affect the question font color.


How can I apply specific changes to either question or answer fonts in the css file?

Many thanks and kind regards
Wilhelm
Last Edit: 1 month 1 day ago by william71.

Please Log in to join the conversation.

More
1 month 1 day ago #159681 by tpartner
tpartner replied the topic: How to set question font attributes in css file
Try adding something like this to the end of template.css:

.question-container .question-text,
.question-container .answer-container {
    color: #000000;
}

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
1 month 1 day ago #159684 by william71
william71 replied the topic: How to set question font attributes in css file
Hi, many thanks!

The following code did what I was referring to:
.question-container .question-text {
    color: #000000;
}

Kind regards
Wilhelm

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!