Welcome to the LimeSurvey Community Forum

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

Array Subquestion Width Overlap

  • boshra.m
  • boshra.m's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 3 months ago - 3 years 3 months ago #225846 by boshra.m
Array Subquestion Width Overlap was created by boshra.m
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Cloud 5.2.13
Own server or LimeSurvey hosting: 
Survey theme/template: Fruity

Hello,I was just wondering if there was a way to prevent the subquestion from "overlapping" to the next line and getting cut off? I have followed this forum to adjust the width of the subquestion and subsequently the answers, which is fine. But I am still having the issue pictured below where there are words getting separated. Is there a way to automatically set the cell so that it automatically fits? 

I have highlighted what I mean in yellow. 

Thank you!  

 
Last edit: 3 years 3 months ago by boshra.m.

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #225856 by tpartner
Replied by tpartner on topic Array Subquestion Width Overlap
Try this in your custom.css file:

Code:
tbody th.answertext {
    hyphens: none; 
    word-wrap: none;
}

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: boshra.m

Please Log in to join the conversation.

  • boshra.m
  • boshra.m's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 3 months ago #225872 by boshra.m
Replied by boshra.m on topic Array Subquestion Width Overlap
Hello,

This worked, thank you!! However it only worked when I don't adjust the subquestion width using:

table.subquestions-list {
width: 70%;
}

This is fine, if I can have the answers not overlap as well. Maybe its a question of vertical length of the answer headings?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 3 months ago #225873 by Joffm
Replied by Joffm on topic Array Subquestion Width Overlap
Sorry, I do not see your real problem.
Do you want to avoid hyphens in general?
Usually the setting is "hyphen: auto" and each browser has its own algorithm to decide where hyphens are inserted.

You have the option to mark optional hyphens with "­" to avoid hyphenation of two characters.
Read the respective chapter at "W3school.com".

And what for do you use this "table subquestions-list { width..."

Seeing the Extreme/ly:
What do you expect if the column is too small and there is a not splittable word?
1. You may use a smaller fontsize.
2. You may use individual column widths, columns with long headings are wider than columns with only one character as heading.

But anyway: You may get in trouble again on smaller screens.

Joffm

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

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
3 years 3 months ago #225883 by DenisChenu
Replied by DenisChenu on topic Array Subquestion Width Overlap
hyphens:manual can be the best solution.
developer.mozilla.org/en-US/docs/Web/CSS/hyphens

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: boshra.m

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose