Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

In-question code to display Bootstrap Buttons vertically

  • paul.emmines
  • paul.emmines's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 1 week ago #228081 by paul.emmines
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.3.1.1
Own server or LimeSurvey hosting:  LS
Survey theme/template: Bootswatch
==================

Is there any way to display Bootstrap buttons vertically with code in the source of the question?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 1 week ago #228086 by Joffm
There is a setting how many buttons you display in a row. "Display theme options"
Set it to "1".
In your question you may enter
Code:
<style type="text/css">
  .button-item.btn {
    width:25%;  // your desired width
  }
</style>

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 1 week ago #228095 by tpartner
A small tip, in CSS double slashes are not valid for comments.

Code:
/* My comment */

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.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 1 week ago #228100 by Joffm
Thanks, Tony

I usually know this.
But only "usually".
Sometimes I type faster than I think, Or I type without thinking. 

Joffm


 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose