- Posts: 16
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
CSS to make the Option Other Text Input stretch to fill the width of the form?
- w0928
- Topic Author
- Offline
- New Member
Less
More
9 years 7 months ago #111945
by w0928
CSS to make the Option Other Text Input stretch to fill the width of the form? was created by w0928
Can anyone help me with this? I'm not having the best of luck. I'm referring to the text box that shows up when you have a multiple choice or radio button question with the "OTHER" option enabled. What I would like to do is have the text box stretch to fill the rest of the line.
I've tried with=100% and that was too much. I also tried messing with display:table, table-cell, etc for the list item that the text input appears in, the check box, and the label. I think this is the right way but I just can't get it right.
I've tried with=100% and that was too much. I also tried messing with display:table, table-cell, etc for the list item that the text input appears in, the check box, and the label. I think this is the right way but I just can't get it right.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
9 years 7 months ago #111961
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic CSS to make the Option Other Text Input stretch to fill the width of the form?
What template are you using?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- w0928
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 1
9 years 7 months ago - 9 years 7 months ago #111965
by w0928
Replied by w0928 on topic CSS to make the Option Other Text Input stretch to fill the width of the form?
Hi. I'm using the 'basic' one. Thanks.
Last edit: 9 years 7 months ago by w0928.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
9 years 7 months ago #111968
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic CSS to make the Option Other Text Input stretch to fill the width of the form?
I don't see away to do that with pure CSS.
I suppose you could use JavaScript to insert <span> elements and manipulate their widths on resize.
.
I suppose you could use JavaScript to insert <span> elements and manipulate their widths on resize.
.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: w0928
The topic has been locked.
- w0928
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 1
9 years 7 months ago #111975
by w0928
Replied by w0928 on topic CSS to make the Option Other Text Input stretch to fill the width of the form?
This worked. Thank you.
The topic has been locked.