set box text input width for other

More
7 years 3 weeks ago #49594 by vickibellamy
vickibellamy created the topic: set box text input width for other
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
7 years 3 weeks ago #49597 by tpartner
tpartner replied the topic: set box text input width for other
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
7 years 3 weeks ago #49605 by vickibellamy
vickibellamy replied the topic: set box text input width for other
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
7 years 3 weeks ago #49606 by tpartner
tpartner replied the topic: set box text input width for other
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
7 years 3 weeks ago #49607 by vickibellamy
vickibellamy replied the topic: set box text input width for other
You are a genius!

Please Log in to join the conversation.

More
7 years 3 weeks ago #49644 by Mazi
Mazi replied the topic: set box text input width for other
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
7 years 2 weeks ago #50203 by brydon
brydon replied the topic: Any reason this would not work?
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
7 years 2 weeks ago #50215 by tpartner
tpartner replied the topic: Any reason this would not work?
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
7 years 1 week ago #50530 by brydon
brydon replied the topic: Any reason this would not work?
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
7 years 1 week ago #50549 by tpartner
tpartner replied the topic: Any reason this would not work?
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.

Start now!

Just create your account and start using Limesurvey today.

Register now