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

TOPIC: Remove excess space in question text - help!

Remove excess space in question text - help! 5 years 1 week ago #55994

  • wian1
  • wian1's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Thanks for your ideas and feedback.
I have tried to clear cache, but this makes no difference. Also, viewing the survey in FF(3.6) or IE(7) gives similar results (the white space is slightly bigger in FF). If I add Help text, the space increases. I have used the BASIC template.

I have attached here an extract from the survey I'm working on. I've tried uploading it to the Demo site, and with BASIC template selected it shows the white space I'm referring to. Hope this makes clear what I'm trying to modify.

File Attachment:

File Name: limesurvey...9329.lss
File Size:29 KB
The administrator has disabled public write access.

Remove excess space in question text - help! 5 years 1 week ago #56043

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5410
  • Thank you received: 1154
  • Karma: 479
Most of the space is cell padding.

In question.pstpl, change line 5:
<table width="100%" cellspacing="0" cellpadding="8" border="0">

To:
<table width="100%" cellspacing="0" cellpadding="0" border="0">

And then add the following to the end of template.css:
.be {
	padding: 0.5em 1em;
}
 
td.answer p {
	margin-left: 1em;
}


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: 5 years 1 week ago by tpartner.
The administrator has disabled public write access.

Remove excess space in question text - help! 4 years 11 months ago #57888

  • wian1
  • wian1's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Thanks Tony. That's great. Your solution took care of most of the extra white space. I did notice though that in the process all white space disappeared from around text boxes in 'long free text' questions, making them look a bit cramped. To fix this I altered line 655

FROM

.numeric input,.text-short input,.text-short textarea,.text-long textarea,.text-huge textarea
{
margin-left: 1em;
}

TO

.numeric input,.text-short input,.text-short textarea,.text-long textarea,.text-huge textarea
{
margin: 1em;
}


This change added a bit more space around the text box.

Cheers,

Ian
The administrator has disabled public write access.

Remove excess space in question text - help! 3 years 8 months ago #80395

Hi Tony,

I have tried your methods but somehow the excess space remains. Please advise? Thanks!
The administrator has disabled public write access.

Remove excess space in question text - help! 3 years 8 months ago #80396

This is a picture illustration..
Attachments:
The administrator has disabled public write access.

Remove excess space in question text - help! 3 years 8 months ago #80397

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5410
  • Thank you received: 1154
  • Karma: 479
Eileen, can you activate a sample survey so I can see the source and relevant styles?
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.

Remove excess space in question text - help! 3 years 8 months ago #80406

hi tony,

I have temporary activated the survey. this is the link of my half completed survey.


thanks!
Last Edit: 3 years 8 months ago by eileenchew6.
The administrator has disabled public write access.

Remove excess space in question text - help! 3 years 8 months ago #80408

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5410
  • Thank you received: 1154
  • Karma: 479
It looks like you have spaces entered in the question help fields.

Check the source and remove the spaces.


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.

Remove excess space in question text - help! 3 years 8 months ago #80409

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5410
  • Thank you received: 1154
  • Karma: 479
Hmm...it looks like you will still have a little white-space due to the padding in the question help cell.

Add the following to the end of template.js to hide that row completely if empty:
$(document).ready(function(){
 
	if($.trim($('.survey-question-help').text()) == ''){
		$('.survey-question-help').parent().hide();
	}
 
});
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.
The following user(s) said Thank You: eileenchew6

Remove excess space in question text - help! 3 years 8 months ago #80410

Yup the problem is solved.

Thanks! (:
The administrator has disabled public write access.

Remove excess space in question text - help! 3 years 8 months ago #80411

Just a note, the coding dont seem to work. But if i manually press "backspace" in each "help" section, it works fine.
The administrator has disabled public write access.

Remove excess space in question text - help! 3 years 8 months ago #80462

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5840
  • Thank you received: 347
  • Karma: 261
eileenchew6 wrote:
Yup the problem is solved.

Thanks! (:
You're welcome :-)

If our hints have been helpful and you enjoy limesurvey please consider a donation to give Limesurvey a future .
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.

Remove excess space in question text - help! 3 years 4 months ago #86231

Along the same lines of changing spacing... I too would like to bring questions closer together as well as creating columns for responses that run through the whole group from top to bottom. Responses would be horizontal with 7 columns (7 radio buttons). I would like the presentation of the series of questions to be: (Facimile)
 Group 1
              Label 1 Label 2 Label 3 Label 4 Label 5 Label 6 Label 7
Question 1:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 2:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 3:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 4:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 5:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 6:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
 
 Group 2
              Label 1 Label 2 Label 3 Label 4 Label 5 Label 6 Label 7
Question 1:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 2:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 3:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 4:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 5:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 6:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
 
 Group 3
              Label 1 Label 2 Label 3 Label 4 Label 5 Label 6 Label 7
Question 1:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 2:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 3:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 4:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 5:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 6:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
 
 Group 4
              Label 1 Label 2 Label 3 Label 4 Label 5 Label 6 Label 7
Question 1:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 2:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 3:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 4:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 5:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |
Question 6:    |   o   |   o   |   o   |   o   |   o   |   o   |   o   |

How would I accomplish this in a limesurvey template. Any example available? Would like to have background with each column. Would like to have variable spacing between columns at times... Any of this Possible?
Last Edit: 3 years 4 months ago by cheyennemtnman.
The administrator has disabled public write access.

Remove excess space in question text - help! 3 years 4 months ago #86374

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5410
  • Thank you received: 1154
  • Karma: 479
You can use array questions for this layout. The spacing, borders and backgrounds can all be accomplished with CSS.

Try using something like Firebug for Firefox to explore the page elements and styles.
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.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.243 seconds