Welcome to the LimeSurvey Community Forum

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

Align bootstrap buttons to the center

  • mpi0920
  • mpi0920's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 months ago #206548 by mpi0920
Align bootstrap buttons to the center was created by mpi0920
Hi everybody!

I just wondered whether there is a way to align the bootstrap buttons in the center of the page within the source code of the question? I tried:

<style type="text/css">

#question{QID} radio-list {align:center;}

</style>


what didn't work. Maybe someone has some suggestions? Thank you!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206567 by tpartner
Replied by tpartner on topic Align bootstrap buttons to the center
Try this:

Code:
<style type="text/css">
 
  #question{QID} .answers-list {
    text-align: center;
  }
 
  #question{QID} .answers-list > div {
    display: inline-block;
    float: none;
  }
 
</style>


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: mpi0920
The topic has been locked.
  • mpi0920
  • mpi0920's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 6 months ago #206601 by mpi0920
Replied by mpi0920 on topic Align bootstrap buttons to the center
Fantastic!! Thank you! :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose