set box text input width for other

More
6 years 5 months ago #49594 by vickibellamy
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.

Please Log in to join the conversation.

More
6 years 5 months ago #49597 by tpartner
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.

Please Log in to join the conversation.

More
6 years 5 months ago #49605 by vickibellamy
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 :(

Please Log in to join the conversation.

More
6 years 5 months ago #49606 by tpartner
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.

Please Log in to join the conversation.

More
6 years 5 months ago #49607 by vickibellamy
You are a genius!

Please Log in to join the conversation.

More
6 years 5 months ago #49644 by Mazi
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)survey-consulting.com'"

Please Log in to join the conversation.

More
6 years 5 months ago #50203 by brydon
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.

Please Log in to join the conversation.

More
6 years 5 months ago #50215 by tpartner
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.

Please Log in to join the conversation.

More
6 years 5 months ago #50530 by brydon
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;
}

Please Log in to join the conversation.

More
6 years 5 months ago #50549 by tpartner
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.

Please Log in to join the conversation.