Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1

THEMA: Unwanted line break between mandatory asterisk and question text

Unwanted line break between mandatory asterisk and question text 7 Monate 3 Wochen her #87246

  • che
  • ches Avatar
  • OFFLINE
  • Silver Donor
  • Beiträge: 15
  • Karma: 0
Hello, I'm using the Basic template in LimeSurvey 2.00. I've edited the question.pstpl and here is what I think is the relevant part:
<table width="100%" cellspacing="0" cellpadding="8" border="0">
					<tr>
						<td class="be">
                                                  <span class="asterisk">{QUESTION_MANDATORY}</span><br />{QUESTION_TEXT}<br /><span class="questionhelp">{QUESTION_HELP}</span>
 
							{QUESTION_MAN_MESSAGE}
							{QUESTION_VALID_MESSAGE}
							{QUESTION_FILE_VALID_MESSAGE}
						</td>
					</tr>
        	        <!--<tr><td><font size="-1"><i>{QUESTIONHELPPLAINTEXT}</i></font></td></tr>-->
					<tr>
						<td width="100%" class="answer">{ANSWER}</td>
					</tr>
	                <tr>
						<td class="survey-question-help">{QUESTIONHELP}</td>
					</tr>
				</table>



The problem is that there is a line/paragraph break between the mandatory asterisk and the question text. Screenshot attached. I also looked in template.css but nothing seems to stand out.

Any help? Thanks much.

Che



Screenshot2012-10-23at11.54.33AM.png
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Unwanted line break between mandatory asterisk and question text 7 Monate 3 Wochen her #87247

  • lowprofile
  • lowprofiles Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 20
  • Dank erhalten: 1
  • Karma: 0
This is also the case for me, I would suspect its the phpeditor and the browser. Some browsers don't add it, firefox will if you save the question text directly in the regular phpUI.
If you are in the source and save it doesn't add the paragraph tag <p>
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Unwanted line break between mandatory asterisk and question text 7 Monate 3 Wochen her #87276

  • tpartner
  • tpartners Avatar
  • ONLINE
  • LimeSurvey Team
  • Beiträge: 2943
  • Dank erhalten: 448
  • Karma: 254
I don't see any <p> tags in your script but I do see a line break after the .asterisk span.

Try changing this:
<span class="asterisk">{QUESTION_MANDATORY}</span><br />{QUESTION_TEXT}<br /><span class="questionhelp">{QUESTION_HELP}</span>

T this:
<span class="asterisk">{QUESTION_MANDATORY}</span>$nbsp{QUESTION_TEXT}<br /><span class="questionhelp">{QUESTION_HELP}</span>
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Unwanted line break between mandatory asterisk and question text 7 Monate 3 Wochen her #87322

  • che
  • ches Avatar
  • OFFLINE
  • Silver Donor
  • Beiträge: 15
  • Karma: 0
@lowprofile -- thank you. It adds an extra step, but using the source works for me.

@tpartner -- thanks as well, but making that change didn't affect anything.

Thanks,
Che
Der Administrator hat öffentliche Schreibrechte deaktiviert.
  • Seite:
  • 1
Moderatoren: DenisChenu, ITEd
Ladezeit der Seite: 0.263 Sekunden
Donation Image