Welcome to the LimeSurvey Community Forum

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

Too much space between question and answer

  • dgiacometti
  • dgiacometti's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 8 months ago #138223 by dgiacometti
Too much space between question and answer was created by dgiacometti
I am designing a survey.

The problem I have is that for a question, after the title of the page I have a one-row question.

The answer option remain too distant from the question (it is too low).

How can I shorten the distance between the question and the answer options?

Thank you in advance.
The topic has been locked.
More
7 years 8 months ago - 7 years 8 months ago #138224 by universewater
Replied by universewater on topic Too much space between question and answer
I've just updated to Version 2.50+ Build 160620 and noticed this too. So much vertical space between questions and answers.

In CSS it seems answer-container has a lot of padding top
padding-top: 3em;
It helps a bit if you decrease it.

In my opinion, questions are separated too much as well. (Using ubuntu_orange)
Last edit: 7 years 8 months ago by universewater.
The topic has been locked.
  • dgiacometti
  • dgiacometti's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 8 months ago #138225 by dgiacometti
Replied by dgiacometti on topic Too much space between question and answer
Is there a way to decrease it ?

How can I do it through the platform?
The topic has been locked.
More
7 years 8 months ago - 7 years 8 months ago #138259 by universewater
Replied by universewater on topic Too much space between question and answer
In the template editor you make a copy of the default theme.

Then, in template.css you change padding-top:

.answer-container
{
border-width: 0px 1px 0px 1px;
padding-top: 0.2em;
background-color: white;
}

In your survey general settings you then have to choose the new template you have created.

I would rather like to see this change (or similar) in the core themes.
Last edit: 7 years 8 months ago by universewater.
The topic has been locked.
  • dgiacometti
  • dgiacometti's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 8 months ago #138278 by dgiacometti
Replied by dgiacometti on topic Too much space between question and answer
Thank you.

Is it possible to shorten also the space in the question?
The topic has been locked.
More
7 years 8 months ago #138319 by universewater
Replied by universewater on topic Too much space between question and answer
You can also decrease padding in question title container, for example:

.question-title-container {
color: white;
[strike] padding: 2em 1em 1em[/strike]
padding: 0em 1em 0em;
}
The following user(s) said Thank You: dgiacometti
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose