Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:
  • Page:
  • 1
  • 2

TOPIC: field allignement - multiple numerical input

field allignement - multiple numerical input 5 years 8 months ago #52791

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6140
  • Thank you received: 1363
  • Karma: 535
Move to the "Question page" screen:
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

field allignement - multiple numerical input 5 years 8 months ago #52792

  • vs_arni
  • vs_arni's Avatar
  • Offline
  • Senior Lime
  • Posts: 68
  • Karma: 0
Here is:

<div class="questionframe">
<div class="questiontext">
{QUESTION}
</div>
<div class="answer">
{ANSWER}
</div>
<div class="questionhelp">
{QUESTIONHELP}
</div>
</div>
The administrator has disabled public write access.

field allignement - multiple numerical input 5 years 8 months ago #52793

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6140
  • Thank you received: 1363
  • Karma: 535
As I thought, this must be an old template so you are missing the code to insert question IDs and classes. Replace the contents of your question.pstpl with the following:
<div {QUESTION_ESSENTIALS} class="{QUESTION_CLASS}{QUESTION_MAN_CLASS}{QUESTION_INPUT_ERROR_CLASS}">
    <div class="questionframe">
        <div class="questiontext">
            {QUESTION}
        </div>
        <div class="answer">
            {ANSWER}
        </div>
        <div class="questionhelp">
            {QUESTIONHELP}
        </div>
    </div>
</div>
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

field allignement - multiple numerical input 5 years 8 months ago #52796

  • vs_arni
  • vs_arni's Avatar
  • Offline
  • Senior Lime
  • Posts: 68
  • Karma: 0
Yeah, now it runs!

Many thanks.
The administrator has disabled public write access.

field allignement - multiple numerical input 5 years 8 months ago #52799

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
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.

field allignement - multiple numerical input 5 years 8 months ago #52803

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6140
  • Thank you received: 1363
  • Karma: 535
Yup, it looks good but now you have some comments appearing. These need to be enclosed in HTML comment tags:

<!-- AGGIUNTO DA ARNI 23-11-2010 - sostituisce il vecchio codice -->

Not CSS comment tags:

/* AGGIUNTO DA ARNI 23-11-2010 - sostituisce il vecchio codice */

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 5 years 8 months ago by tpartner.
The administrator has disabled public write access.

field allignement - multiple numerical input 5 years 8 months ago #52813

  • vs_arni
  • vs_arni's Avatar
  • Offline
  • Senior Lime
  • Posts: 68
  • Karma: 0
Done.
Life is so difficult...
The administrator has disabled public write access.

field allignement - multiple numerical input 5 years 8 months ago #52817

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6140
  • Thank you received: 1363
  • Karma: 535
Life is so difficult...
:laugh:

Mazi, we have run across this problem with old question.pstpl files several times now so I added a note to the wiki - docs.limesurvey.org/tiki-index.php?page=...tyles#Standard_Pages
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 5 years 8 months ago by tpartner.
The administrator has disabled public write access.

field allignement - multiple numerical input 5 years 8 months ago #52826

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
Thanks a lot, Tony.

This always happens when having updates Limesurvey and using an older, customized template.
Other problem might be:
- having bullets at list options
- invalid progress bar
- conditions not working (due to the problem you mentioned)

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.

Aw: field allignement - multiple numerical input 5 years 3 months ago #59460

I am using the latest version of Limesurvey: Version 1.90+ Build 9642

The alignment of the multiple numerical output works in Firefox, but when I view it in IE7, the alignment is all messed up.

I am using a standard template, as is on that came with the Limesurvey 1.90+.

Can you please assist?
Attachments:
The administrator has disabled public write access.

Aw: field allignement - multiple numerical input 5 years 3 months ago #59475

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6140
  • Thank you received: 1363
  • Karma: 535
That's because IE7 does not respect "display:table-cell" (among other things). You can fix the width but it may lead to display problems with floating width templates. Try adding the following to the end of ie_fix_7.css (this is untested):
.numeric-multi ul li label {
  float: left;
  width: 150px;
}
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Aw: Re: Aw: field allignement - multiple numerical input 5 years 3 months ago #59481

THANKS! This seems to solve the numerical input but pushes the "subquestion inputs" too far left. I did manage to solve this by adding some padding to the left though.

I also tried out the slider option and this fix didn't solve the alignment for the slider.
The administrator has disabled public write access.

Aw: Re: Aw: field allignement - multiple numerical input 5 years 3 months ago #59492

I managed to solve the slider option (the alignment was also all messed up in ie7) by editing the following in the i_fix_7.css file:

.numeric-multi label.slider-label {
margin-top: 1.3em;
display: inline;
min-width: 70px;
padding-left:20px;

}
The administrator has disabled public write access.

Aw: Re: Aw: field allignement - multiple numerical input 5 years 3 months ago #59494

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6140
  • Thank you received: 1363
  • Karma: 535
;) Maybe IE7 will disappear faster than IE6!
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.462 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form