Welcome, Guest
Username: Password: Remember me

TOPIC: Edit style of Text Display question

Edit style of Text Display question 2 years 5 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.



textdisplay2.JPG



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


textdisplay_2012-05-04.JPG


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: 2 years 5 months ago by ricardo. Reason: wrong attachment
The administrator has disabled public write access.

Re: Edit style of Text Display question 2 years 5 months ago #79836

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
Hello,

Put at end of template.css:
.boilerplate .survey-question-text{
  font-weight: normal;
}
The administrator has disabled public write access.

Re: Edit style of Text Display question 2 years 5 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.

Re: Edit style of Text Display question 2 years 5 months ago #79964

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
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.

Re: Edit style of Text Display question 2 years 5 months ago #79966

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
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
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.115 seconds
Donation Image