Welcome, Guest
Username: Password: Remember me

TOPIC: Align answer for just Short Free Text?

Align answer for just Short Free Text? 4 years 10 months ago #51420

  • osibv
  • osibv's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Hi,

I am struggling with the alignment of the answers of SOME questions. Is there a way to align the answer-field for just 1 or 2 questions (or alternatively just for answers with "Short free text")???

I'd like to center-align the answer of this question (See image below)



I am using Version 1.90 Build 9029. Using a modified version of the template "MintIdea".

I searched a bit, but couldn't find the answer to this question. Any help is much appretiated!

This message has an attachment image.
Please log in or register to see it.

Last Edit: 4 years 10 months ago by osibv.
The administrator has disabled public write access.

Align answer for just Short Free Text? 4 years 10 months ago #51427

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 7510
  • Thank you received: 1024
  • Karma: 297
Hello,

Maybe you can find some answer here:
www.limesurvey.org/fr/support/forums/5-c...-questions-on-1-line
The administrator has disabled public write access.

Align answer for just Short Free Text? 4 years 10 months ago #51461

  • osibv
  • osibv's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Thanks :)

Although I understand CSS, I don't understand the structure of LimeSurvey too well...

Does the code 111 (#question111) equal the code you enter in each question, or am I way off? I don't understand how Lime Survey would recognize the question in question.
The administrator has disabled public write access.

Align answer for just Short Free Text? 4 years 10 months ago #51470

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 7510
  • Thank you received: 1024
  • Karma: 297
Each question in teh template are identified with: questionXXX where XXX is the numer of that question, the number for LimeSurvey (see SGQA for understanding).

And have some class according to there specifity (class="text-long mandatory")
The administrator has disabled public write access.

Align answer for just Short Free Text? 4 years 10 months ago #51508

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5111
  • Thank you received: 1049
  • Karma: 440
Does the code 111 (#question111) equal the code you enter in each question...
The question ID (111 in the example above) is a sequentially assigned number and is not related to the question code that you assign. So the question ID in the image below would be #question2023 .

This message has an attachment image.
Please log in or register to see it.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 4 years 10 months ago by tpartner.
The administrator has disabled public write access.

Align answer for just Short Free Text? 4 years 10 months ago #51525

  • osibv
  • osibv's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Thanks a lot :)

Both the link and explanation about the question code was very useful and it works now :)

This was the final code I used in template.css:
#question134 .survey-question-answer {
    text-align: center;
}
The administrator has disabled public write access.

Align answer for just Short Free Text? 4 years 10 months ago #51533

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5725
  • Thank you received: 334
  • Karma: 255
You're welcome!

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.217 seconds