Welcome to the LimeSurvey Community Forum

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

How can I align in the center the type questions yes/not?

  • Cjonath
  • Cjonath's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #212026 by Cjonath
Hi everybody! 

How can I align in the center the type questions yes/not?

I'm editing my thema by extend function.

I tried this code of an old question from here, but it doesn't work.

#question{11774}.answers-list {
    text-align: center;
}
 
#question{11774}.answers-list > div {
    display: inline-block;
    float: none;
}

Thank since now
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #212031 by tpartner
Add this to the custom.css file in your extended theme:

Code:
.yes-no .answers-list {
  text-align: center;
}
 
.yes-no .answers-list > div {
  display: inline-block;
  float: none;
}

 

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Cjonath
  • Cjonath's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #212043 by Cjonath
Thank you, but it doesn't work.

:/

   
 
The topic has been locked.
  • Cjonath
  • Cjonath's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 2 months ago #212051 by Cjonath
I tried with the code bellow and also it doesn't work

.button-list .button-item {
text-align: center;
}

.button-list .button-item > div {
display: inline-block;
float: none;
}
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #212072 by tpartner
You did not mention that you are using the button layout. That would have saved me some wasted time.

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: DenisChenu
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago #212073 by tpartner
Code:
.yes-no .yesno-button {
  float: none;
  margin: 0 auto;
}

 

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: Cjonath
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose