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
  • w0928's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 6 months ago #111945 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.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 6 months ago #111961 by tpartner
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
  • w0928's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 6 months ago - 9 years 6 months ago #111965 by w0928
Hi. I'm using the 'basic' one. Thanks.
Last edit: 9 years 6 months ago by w0928.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 6 months ago #111968 by tpartner
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.


.

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
  • w0928's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 6 months ago #111975 by w0928
This worked. Thank you.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose