Welcome, Guest
Username: Password: Remember me

TOPIC: Align answer for just Short Free Text?

Align answer for just Short Free Text? 3 years 11 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)

LimeSurveyQuestion.png


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!
Last Edit: 3 years 11 months ago by osibv.
The administrator has disabled public write access.

Re:Align answer for just Short Free Text? 3 years 11 months ago #51427

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
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.

Re:Align answer for just Short Free Text? 3 years 11 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.

Re:Align answer for just Short Free Text? 3 years 11 months ago #51470

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6451
  • Thank you received: 844
  • Karma: 249
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.

Re:Align answer for just Short Free Text? 3 years 11 months ago #51508

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4281
  • Thank you received: 807
  • Karma: 370
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 .

Untitled_1-20101030.png
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: 3 years 11 months ago by tpartner.
The administrator has disabled public write access.

Re:Align answer for just Short Free Text? 3 years 11 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.

Re:Align answer for just Short Free Text? 3 years 11 months ago #51533

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
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.170 seconds
Donation Image