Aligning an answer

More
5 years 2 months ago #76765 by davidspivak
davidspivak created the topic: Aligning an answer
Hi,
I know how to align the question itself, but how do I align an answer of a question?
For example, I would like to center the scale in the attached image.

Thanks!
David

Attachments:

Please Log in to join the conversation.

More
5 years 2 months ago #76779 by tpartner
tpartner replied the topic: Aligning an answer
Can you activate a sample survey so we can see the source code?

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.

More
5 years 2 months ago #76782 by davidspivak
davidspivak replied the topic: Aligning an answer

Please Log in to join the conversation.

More
5 years 2 months ago - 5 years 2 months ago #76784 by tpartner
tpartner replied the topic: Aligning an answer
If you want to do it for a specific question, add the following to the end of template.css (where 195 is the question ID):
#question195 .answer ul {
    margin: 0 auto 1.5em auto;
}

If you want to do it for all multi-numerics, add the following to the end of template.css:
.numeric-multi .answer ul {
    margin: 0 auto 1.5em auto;
}

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 5 years 2 months ago by tpartner.
The following user(s) said Thank You: davidspivak

Please Log in to join the conversation.

More
5 years 2 months ago #76785 by davidspivak
davidspivak replied the topic: Aligning an answer
Awesome, that worked!

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now