Aligning welcome, end message and group description texts

More
3 years 7 months ago #101006 by RingCredible
RingCredible created the topic: Aligning welcome, end message and group description texts
Hello,

I have made several surveys with LimeSurvey and everything works fine. However, since the welcome, end message and 1 group description texts are pretty long, I want to align them to the left to make them easier to read.
I tried to find the code responsible for this in the template editor (template: copy_of_default (so far I only removed the clear and exit button)), but I couldn't find it. Can someone please tell me which lines of code are responsible for this?

Thanks in advance!

Please Log in to join the conversation.

More
3 years 7 months ago #101008 by tpartner
tpartner replied the topic: Aligning welcome, end message and group description texts
These can be adjusted in template.css.

Welcome message - around line 488, change this:
td.survey-welcome {
    text-align: center;
}


End message - around line 613, change this:
.completed-text {
    font-size: small;
    text-align: center;
}


Group description - add this to the end of template.css:
.group-description {
    display: block;
    text-align: left;
}

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: RingCredible

Please Log in to join the conversation.

More
3 years 7 months ago #101036 by RingCredible
RingCredible replied the topic: Aligning welcome, end message and group description texts
Thank you for your response, it was exactly what I was looking for!

However, now that I edited it I ran into another problem. Some of the sentences are quite long, and I was wondering if it is possible to set a maximum width to a text field (so that the sentences are broken into pieces automatically) to make the text easier to read.

Please Log in to join the conversation.

More
3 years 7 months ago #101040 by tpartner
tpartner replied the topic: Aligning welcome, end message and group description texts
td.survey-welcome {
    text-align: left;
    max-width: 450px;
}


;)

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: RingCredible

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now