mirror of https://gitlab.com/curben/blog
51 lines
1.4 KiB
Markdown
51 lines
1.4 KiB
Markdown
---
|
|
title: Prevent word break in array question on LimeSurvey
|
|
excerpt: In array type question, when you add many answer options, some words might break into next line, especially when the word is long.
|
|
date: 2018-10-31
|
|
tags:
|
|
- stats
|
|
- limesurvey
|
|
---
|
|
|
|
When you have many answer options, the word can break into next line, like this:
|
|
|
|

|
|
|
|
LimeSurvey does this to have consistent column width size across array question. Personally, I prefer not to have word break than fixed width.
|
|
|
|
Here's how to prevent word break.
|
|
|
|
1. Go to the main admin page and then Themes.
|
|
|
|

|
|
|
|
2. 'Extend' the theme of your choice. Choose a name of the new *extended* theme.
|
|
|
|

|
|
|
|
3. It will redirect you to 'Theme editor' page.
|
|
4. Go to 'custom.css'.
|
|
|
|

|
|
|
|
5. Paste the following css,
|
|
|
|
```css
|
|
table.ls-answers {
|
|
table-layout: auto;
|
|
}
|
|
|
|
#outerframeContainer {
|
|
word-wrap: normal;
|
|
hyphens: none;
|
|
-moz-hyphens: none;
|
|
-webkit-hyphens: none;
|
|
}
|
|
```
|
|
|
|
5. Save it and change to the new theme in your survey.
|
|
|
|
Once the word break is disabled, array answers should look like this,
|
|
|
|

|