Welcome to the LimeSurvey Community Forum

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

Stop word from wrapping

  • jimdavies
  • jimdavies's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 1 month ago #164367 by jimdavies
Stop word from wrapping was created by jimdavies
How do I stop an answer from splitting a word and wrapping it. I'd rather Strongly be on one line and Disagree be on another. Screen shot attached.
The topic has been locked.
More
6 years 1 month ago #164368 by blocka
Replied by blocka on topic Stop word from wrapping
Assuming you are using LS 2.x, you can disable this behaviour by adding the following CSS to the end of your custom template's template.css file:

/* customization - remove hyphenation */
#outerframeContainer { hyphens: none; word-wrap: none; }
* { -moz-hyphens:none; -ms-hyphens:none; -webkit-hyphens: none; hyphens:none; }
The following user(s) said Thank You: DenisChenu, jimdavies
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 1 month ago #164448 by holch
Replied by holch on topic Stop word from wrapping
Good solution, Blocka!

I would force the line brake after the word anyway. Makes it much easier to read.

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

The topic has been locked.
More
5 years 7 months ago #173098 by jullenberg1
Replied by jullenberg1 on topic Stop word from wrapping
How can we stop word-wrapping with limeSurvey 3.0+?

At least for Finnish, word-wrapping tends to cut long words in arbitrary positions. It can make questions look messy or gibberish (see attachment with word "kohtalaisesti").
Attachments:
The topic has been locked.
More
5 years 7 months ago - 5 years 7 months ago #173117 by jullenberg1
Replied by jullenberg1 on topic Stop word from wrapping
Update:

Where does the word hyphenation functionality come from? Is it browser-dependent?

I just tried my survey with Firefox (instead of Chrome) and word wrapping hyphenation worked fine!
Last edit: 5 years 7 months ago by jullenberg1.
The topic has been locked.
More
5 years 7 months ago #173126 by jelo
Replied by jelo on topic Stop word from wrapping

jullenberg1 wrote: Where does the word hyphenation functionality come from? Is it browser-dependent?

Browser is doing the hyphenation. You can e.g. set it off via tags.

You can see the different support by browsers here:
developer.mozilla.org/en-US/docs/Web/CSS...rowser_compatibility

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: holch
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose