Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Edit style of Text Display question

Edit style of Text Display question 4 years 4 months ago #79828

  • ricardo
  • ricardo's Avatar
  • Offline
  • Expert Lime
  • Posts: 117
  • Thank you received: 1
  • Karma: 0
I'm creating a text display question, which will be used to present some instructions. I want to use bold text in some parts of the questions only.






However, when I run the survey, the whole question is in bold text.




How can I modify this so it displays bold text only where I want. I'm using a template based on limeinspired

thanks
Last Edit: 4 years 4 months ago by ricardo. Reason: wrong attachment
The administrator has disabled public write access.

Edit style of Text Display question 4 years 4 months ago #79836

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9352
  • Thank you received: 1339
  • Karma: 386
Hello,

Put at end of template.css:
.boilerplate .survey-question-text{
  font-weight: normal;
}
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Edit style of Text Display question 4 years 4 months ago #79844

  • ricardo
  • ricardo's Avatar
  • Offline
  • Expert Lime
  • Posts: 117
  • Thank you received: 1
  • Karma: 0
Thanks, Denis. I appreciate it.

rg
The administrator has disabled public write access.

Edit style of Text Display question 4 years 4 months ago #79964

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6009
  • Thank you received: 371
  • Karma: 260
Unfortunately some template (I think even the defaut template) use bold question text by default which isn't very clever because this takes the opportunity to mark certain text parts in bold, you could only use <em> or underlining instead.

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.

Edit style of Text Display question 4 years 4 months ago #79966

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9352
  • Thank you received: 1339
  • Karma: 386
Mazi wrote:
Unfortunately some template (I think even the defaut template) use bold question text by default which isn't very clever because this takes the opportunity to mark certain text parts in bold, you could only use <em> or underlining instead.
Solution can be in template.css.
.question-text strong,.question-text b{color:#000}
Or some other color.

Denis
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
Time to create page: 0.321 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form