Adressing a specific Question

More
5 years 1 month ago - 5 years 1 month ago #88088 by Freya
Freya created the topic: Adressing a specific Question
Hello there,
for my survey I'd like to replace they Answertext of an array with an image to keep the radiobuttons as small as possible.
When I'm placing the image into question.pstpl it appears globally for all questions. But the problem is, that there aren't only array questions, so the image sometimes is misplaced.
http://imagebin.org/235450

With some advice from Mazi and searching in the forum I figured that one can adress a specific question.
I tried to put a code at the end of template.css, leaving out the part with the image, just to see, if the question is targeted.:
#question276 {
text-align: center;
}
But nothing happened...

Could you please help me to see where am I doing wrong?

Heres is my activated survey in short form:
survey.metrik.de/index.php/survey/index/sid/398457/lang/de
Attachments:
Last Edit: 5 years 1 month ago by Freya.

Please Log in to join the conversation.

More
5 years 1 month ago - 5 years 1 month ago #88104 by tpartner
tpartner replied the topic: Adressing a specific Question
It appears that you may be using a copy of a very old template that does not assign the appropriate classes to the questions.

You will need to wrap the contents of your question.pstpl in a <div> element like this (have a look at the shipped templates):
<div {QUESTION_ESSENTIALS} class="{QUESTION_CLASS}{QUESTION_MAN_CLASS}{QUESTION_INPUT_ERROR_CLASS}">
    <!-- Your existing question.pstpl code here -->
</div>

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

Please Log in to join the conversation.

More
5 years 1 month ago #88106 by Freya
Freya replied the topic: Adressing a specific Question
Ah I see.
I tried but still nothing happened, even when i changed everything to a shipped (copy of basic) template.
Do I have to add something like .array2 ?

Please Log in to join the conversation.

More
5 years 1 month ago #88107 by tpartner
tpartner replied the topic: Adressing a specific Question

I tried but still nothing happened...

Sure it does. Try this:
#question276 table.question {
	background: transparent url(http://www.metrik.de/fileadmin/templates/metrik/images/klemme.png) right 0 no-repeat; 
} 
#question276 table.question thead th {
	height:80px; 
}


Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: Freya

Please Log in to join the conversation.

More
5 years 1 month ago #88126 by Freya
Freya replied the topic: Adressing a specific Question
Uhh thanks a lot! :)

Please Log in to join the conversation.

More
5 years 1 month ago - 5 years 1 month ago #88271 by Freya
Freya replied the topic: Aw: Re: Adressing a specific Question
Since you are so nice to help me I have another question you may help me with but I don't want to open a new thread.
I tried for hours to get the attached image behind the welcome message. When I insert it into the welcome text it only appears below the welcome text and this looks bad.

I think there is an easy way to do this but I'm only beginning to learn handling CSS and limesurvey...

survey.metrik.de/index.php/survey/index/sid/398457/lang/de

Any help would be very appreciated. :)
Attachments:
Last Edit: 5 years 1 month ago by Freya.

Please Log in to join the conversation.

More
5 years 1 month ago #88307 by tpartner
tpartner replied the topic: Adressing a specific Question
You will need to insert it as a background image - www.w3schools.com/cssref/pr_background-image.asp .

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 1 month ago #88328 by Freya
Freya replied the topic: Adressing a specific Question
I tried this before but if I insert this into body the picture only appears behind the box the welcome text is in.
http://imagebin.org/235828
I'd like to have it behind the message "Willkommen zu dieser Beispielumfrage.Sie sollten viel Spass dabei haben!Diese Umfrage enthält 10 Fragen.".
I don't know where to put background-image:url(''); for this case.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!