Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:
  • Page:
  • 1
  • 2

TOPIC: template.css

Aw: template.css 5 years 6 months ago #55478

  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 6139
  • Thank you received: 1363
  • Karma: 535
I don't see any inline style in your template that would override the stylsheets. I think it's just a matter of selecting the correct element to style and placing the styles in the proper position in the cascade.

Try using Firebug for Firefox to explore the elements of your pages.

There are lots of helpful CSS tips tutorials available online - eg. www.w3schools.com/css/default.asp
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Aw: Re: Aw: template.css 5 years 6 months ago #55650

  • chupanibre
  • chupanibre's Avatar
  • Offline
  • Junior Lime
  • Posts: 29
  • Karma: 0
Thanks for the firebug-tip.
I was able to narrow down my problem; using firebug I was able to retrieve the css-class dealing with the format of my question:
.survey-question-answer {
display:block;
font-weight:400;
margin:0 64px 0 54px;
}

The thing is that I am unable to modify this entry. I changed this class in the template.css using the template editor from limesurvey, but it seems to stays the same. The format of the question does not change, as well as the entry in the .css file displayed in firebug...

That is the reason why I first asked about this; I changed some values in template.css which did not lead to any change in the final version of my questionnaire.
Last Edit: 5 years 6 months ago by chupanibre.
The administrator has disabled public write access.

Aw: Re: Aw: template.css 5 years 6 months ago #55656

  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 6139
  • Thank you received: 1363
  • Karma: 535
I don't understand why making changes in the template editor don't change the file.

Try adding the following to the end of template.css as a test:
.survey-question-answer {
    color: red;
}
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
The following user(s) said Thank You: chupanibre

Aw: Re: Aw: template.css 5 years 6 months ago #55661

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
chupanibre wrote:
That is the reason why I first asked about this; I changed some values in template.css which did not lead to any change in the final version of my questionnaire.
Usually CSS files are cached by the browser. You have to reload the complete survey page so that the updated CSS file is loaded by the browser. Pressing (CTRL) + F5 should do the trick.
Using firebug you can then also check if the changes were saved at the template editor.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
The following user(s) said Thank You: chupanibre

Aw: Re: Aw: Re: Aw: template.css 5 years 6 months ago #55701

  • chupanibre
  • chupanibre's Avatar
  • Offline
  • Junior Lime
  • Posts: 29
  • Karma: 0
@Mazi: Thanks again for your help, (CTRL) + F5 was the problem ;)
Last Edit: 5 years 6 months ago by chupanibre.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.236 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form