Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Array questions left-aligned

Array questions left-aligned 2 years 5 months ago #76969

  • l3ctr0n
  • l3ctr0n's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
Hello!
Due to the fact that I got very useful help a moment ago, I have got another question in respect of the alignment of array questions.
I want to adjust all my questions on the left side. I succeeded in it with all questions other than the arrays. Can someone help me with the css-class that manages the total alignment of arrays?

Thanks in advance!

Best regards!
The administrator has disabled public write access.

Re: Array questions left-aligned 2 years 5 months ago #76971

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4130
  • Thank you received: 763
  • Karma: 347
Can you provide a screenshot of what you want changed and tell us what template you are using?
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.
The administrator has disabled public write access.

Aw: Re: Array questions left-aligned 2 years 5 months ago #76973

  • l3ctr0n
  • l3ctr0n's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
Thank you for your fast answer!

I'm using a modified default-template and LimeSurvey 1.90+.
The screenshot is located in the attachment.
The whole table should be left-aligned, so the first column should have the same spacing to the border as the question text.
Attachments:
The administrator has disabled public write access.

Aw: Re: Array questions left-aligned 2 years 5 months ago #76976

  • dreier
  • dreier's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 24
  • Thank you received: 2
  • Karma: 3
Hey,

try this in template.css:
#limesurvey table.question tbody th.answertext, #limesurvey table.question tbody th.arraycaptionleft
{
text-align:left;
}
there is the option text-align:right; actually. Should work (just tried in firebug).

Cheers
dreier
Last Edit: 2 years 5 months ago by dreier.
The administrator has disabled public write access.

Re: Aw: Re: Array questions left-aligned 2 years 5 months ago #76977

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4130
  • Thank you received: 763
  • Karma: 347
Try adding this to the end of template.css:
.array-flexible-row td.answer,
.array-10-pt td.answer,
.array-10-pt td.answer {
    padding: 0.5em 1em;
}
 
.array-flexible-row table.question,
.array-5-pt table.question,
.array-10-pt table.question {
	width: 100%;
}
 
.array-flexible-row table.question .answertext,
.array-5-pt table.question .answertext,
.array-10-pt table.question .answertext{
	text-align: left !important;
}
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.
The administrator has disabled public write access.

Aw: Re: Array questions left-aligned 2 years 5 months ago #76978

  • l3ctr0n
  • l3ctr0n's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
dreier wrote:
Hey,

try this in template.css:
#limesurvey table.question tbody th.answertext, #limesurvey table.question tbody th.arraycaptionleft
{
text-align:left;
}

Hey,
thanks for your answer, but this option modifies the text-align inside the first answer-column...
The administrator has disabled public write access.

Aw: Re: Aw: Re: Array questions left-aligned 2 years 5 months ago #76981

  • l3ctr0n
  • l3ctr0n's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
tpartner wrote:
Try adding this to the end of template.css:
.array-flexible-row td.answer,
.array-10-pt td.answer,
.array-10-pt td.answer {
    padding: 0.5em 1em;
}
 
.array-flexible-row table.question,
.array-5-pt table.question,
.array-10-pt table.question {
	width: 100%;
}
 
.array-flexible-row table.question .answertext,
.array-5-pt table.question .answertext,
.array-10-pt table.question .answertext{
	text-align: left !important;
}

Hi!
Thanks, that works and the whole array will broaden.
But it well may be that other arrays are use and these questions are still not aligned on the left side, see the attachments.
Do you have another idea?
Attachments:
The administrator has disabled public write access.

Aw: Re: Array questions left-aligned 2 years 5 months ago #76982

  • dreier
  • dreier's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 24
  • Thank you received: 2
  • Karma: 3
Hey,

sorry read to fast - thought u wanted to align the text inside ur arrays - my mistake!

Cheers
dreier
The administrator has disabled public write access.

Re: Aw: Re: Aw: Re: Array questions left-aligned 2 years 5 months ago #76984

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4130
  • Thank you received: 763
  • Karma: 347
What question type is that? My code should affect all Array, Array-10-point and Array-5-point questions
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: 2 years 5 months ago by tpartner.
The administrator has disabled public write access.

Aw: Re: Aw: Re: Aw: Re: Array questions left-aligned 2 years 5 months ago #76987

  • l3ctr0n
  • l3ctr0n's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
tpartner wrote:
What question type is that? My code should affect all Array, Array-10-point and Array-5-point questions

I think the question type is array-increase-same-decrease, but there is no reaction if ein only add .array-increase-same-decrease to your given code and paste it into my template.css
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.180 seconds
Donation Image