Prevent word break in array question on LimeSurvey Share postShare icon

In array type question, when you add many answer options, some words might break into next line, especially when the word is long.

When you have many answer options, the word can break into next line, like this:

Part of a word break into next line in LimeSurvey

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.

LimeSurvey theme button in admin panel

  1. ‘Extend’ the theme of your choice. Choose a name of the new extended theme.

LimeSurvey theme list

  1. It will redirect you to ‘Theme editor’ page.
  2. Go to ‘custom.css’.

Customise LimeSurvey theme through custom.css

  1. Paste the following css,
table.ls-answers {
    table-layout: auto;
}

#outerframeContainer {
    word-wrap: normal;
    hyphens: none;
    -moz-hyphens: none;
    -webkit-hyphens: none;
}
  1. Save it and change to the new theme in your survey.

Once the word break is disabled, array answers should look like this,

No word break in LimeSurvey