Welcome, Guest
Username: Password: Remember me

TOPIC: sliders, longer answer but right of question

sliders, longer answer but right of question 2 years 2 weeks ago #83161

  • opirnia
  • opirnia's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Karma: 1
We are using limesurvey 1.92+ build 120623

For slider answers we wish to have the format as usual, sub question with answer slider bar to the right. We would, however, like for the default slider bar to be longer.

here is what it looks like with no changes (by default)
defaultSlider.JPG


and here is almost how we wish it to look
slider.JPG


Is there a way I can make the slider answers begin and end at the same place instead of having where they begin and end change depending on the length of text in the subquestions?

Here is what I added to the end of template.css (changed a little from code I found in answer to www.limesurvey.org/forum/can-i-do-this-w...-wider?lang=en#70823 )


.numeric-multi ul {
width: 100%;
}

.numeric-multi li {
width: 100%;
}

.numeric-multi label {
float: left;
display: block;
}

.numeric-multi div.multinum-slider {
width: 80%;
}

.ui-slider-horizontal {
width: 100%;
}

fyi: I don't really know .css code at all, just found code that seemed almost right and have changed it a little.
Last Edit: 2 years 2 weeks ago by opirnia. Reason: clarification of question
The administrator has disabled public write access.

Re: sliders, longer answer but right of question 2 years 1 week ago #83196

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4049
  • Thank you received: 739
  • Karma: 341
Well, as it says in that post, "these styles are for the default template and may need to be modified for other templates".

What template are you using?

Can you activate a sample survey for us to see the source code?
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.

Re: sliders, longer answer but right of question 2 years 1 week ago #83207

  • opirnia
  • opirnia's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Karma: 1
Thank you for getting back to me.

I am using the bluengrey template (renamed to copy_of_noprivacyNoprogressBluengrey [we took off privacy as we have to use initial IRB screen and progress since we are using subquestions so it's misleading) but since it said settings in other thread were for default I did try them with that template also (same results though).

Overnight another worker did something and it looks ok now for us on both netbooks and laptops. I'd liked your code because it used percents so resized nicely (I was hoping for iphones too).

Not 100% sure what he's done, he did not put settings at the end like I was doing based on instructions in other thread. I think he actually changed coding for slider questions.

I've activated testing survey and it is here ubcomm.org/limesurvey/index.php?sid=43635&lang=en Really all is ok now though. thank you. (note: first question, which is really a group of subquestions with sliders, was what I was working on; second question only exists as I was comparing layout to first question. We use limesurvey to run pair comparison surveys.)

Unless you have ideas on how we might have slider width change depending on computer/phone displaying survey, our present hard coding (he actually set the pixels I believe) is sufficient. All is well and I'm sorry to take your time.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.110 seconds
Donation Image