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

TOPIC: set box text input width for other

set box text input width for other 3 years 6 months ago #49594

Hi there,

Is it possible to set the box text input width for other in a radio list, I have looked
into attributes and cant see it there as I know this is possible with a simple text input field.
The administrator has disabled public write access.

Re:set box text input width for other 3 years 6 months ago #49597

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3837
  • Thank you received: 688
  • Karma: 330
Add the following to the end of template.css:
.list-radio li.other input.text {
    width: 300px;
}
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:set box text input width for other 3 years 6 months ago #49605

thanks this works brilliant, so if I would like to apply the same to a multiple option question so that the option text field is 300px surely this would be the css to add?

.multiple-opt li.other input.text {
width: 550px;
}

doesnt seem to work though :(
The administrator has disabled public write access.

Re:set box text input width for other 3 years 6 months ago #49606

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3837
  • Thank you received: 688
  • Karma: 330
No, that ones set up a little differently:
.multiple-opt input.text {
    width: 550px;
}
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:set box text input width for other 3 years 6 months ago #49607

You are a genius!
The administrator has disabled public write access.

Re:set box text input width for other 3 years 6 months ago #49644

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5279
  • Thank you received: 289
  • Karma: 246
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.

Any reason this would not work? 3 years 6 months ago #50203

  • brydon
  • brydon's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
I added this code to the end of template.css in the active template directory. I checked the page source and it is pointing to the right template.css file. But alas, no change to the width of the "other" input box.

Anyone else have problems with this? Any help would be appreciated.
The administrator has disabled public write access.

Re:Any reason this would not work? 3 years 6 months ago #50215

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3837
  • Thank you received: 688
  • Karma: 330
brydon, what question type are you 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.

Re:Any reason this would not work? 3 years 6 months ago #50530

  • brydon
  • brydon's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
The question type is "List (radio)"

The last few lines of template.css in the relevant template directory are:
.list-radio li.other input.text {
width: 300px;
}
The administrator has disabled public write access.

Re:Any reason this would not work? 3 years 6 months ago #50549

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 3837
  • Thank you received: 688
  • Karma: 330
Can you activate a sample survey so we can check to see what is interfering?
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.234 seconds
Donation Image