Welcome to the LimeSurvey Community Forum

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

Unable to modify questions text size

  • Falco68
  • Falco68's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 months 6 days ago - 6 months 6 days ago #251361 by Falco68
Your LimeSurvey version: CE 6.2.11
Own server or LimeSurvey hosting: Own server
Survey theme/template: Own theme based on Fruity
==================
Hello,
I'm trying to modify the font size of the questions.
So in custom.css I added .question-title-container .question-text {font-size: 18px;}
But the size still remain in 11pt.
When I inspect the page there is a lot of <span>, and one like this <span style="font-size:11pt;">.
 
I find the source of this in the editor of the question, when I switch to the source view.
 
Somebody could tell me how to override this parameter from the editor ?

Thanks.
Last edit: 6 months 6 days ago by Falco68.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 6 days ago #251362 by Joffm
Replied by Joffm on topic Unable to modify questions text size
The WYSIWYG editor likes these span orgias.
For each new setting it creates a new span element.
Therefore you see two "font-size", two "font-family".

And the inline css overrides the settigs in "custom.css"

Remove the css from the question text.
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: Falco68

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 6 days ago #251364 by tpartner
Replied by tpartner on topic Unable to modify questions text size
...or, did you paste from MS Word? That would have added a lot of unnecessary HTML.

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: Falco68

Please Log in to join the conversation.

  • Falco68
  • Falco68's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 months 6 days ago #251365 by Falco68
Replied by Falco68 on topic Unable to modify questions text size
Thanks a lot.
For the solution : I will remove the unecessary css in editor.
And for the explanation : yes, it's a paste from MS Word.

Have a nice day.

Please Log in to join the conversation.

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 months 6 days ago #251367 by holch
Replied by holch on topic Unable to modify questions text size
When copying from Word always right click and use "paste as plain text". Chrome has this feature, I assume other modern browsers also have. It is a little slower, but avoids this behaviour.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose