Welcome to the LimeSurvey Community Forum

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

CSS class field in advance setting of question..

  • shivani123
  • shivani123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 3 months ago #145290 by shivani123
In advance settings of Question contain one field CSS Class(es) which is used to add extra css to question but i didn't get how to add the css classes where we should declare the class and how to include this classes. can you tell me about this ?
Thank you...
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago - 7 years 3 months ago #145321 by Joffm
Here is an example where it is used and explained
www.limesurvey.org/forum/design-issues/1...ions-in-2-x-2-matrix

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 years 3 months ago by Joffm. Reason: link geändert
The following user(s) said Thank You: holch
The topic has been locked.
  • shivani123
  • shivani123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 3 months ago #145342 by shivani123
Replied by shivani123 on topic CSS class field in advance setting of question..
i get some hint from this example but i didn't understand where should i write this class so that it will apply css for that part of question...
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago - 7 years 3 months ago #145357 by Joffm
Hi, shhivani,
But it's said explicitly in Tony's answer :

In the advanced question settings, you can define a CSS class for the questions. Let's say "my-slider-question" for the sliders and "my-text-question" for the long-texts.

Then in template.css, you can apply styles to the questions something like this. It should place them side-by-side.

.my-slider-question {
float: left;
width: 32%;
margin-right: 2%;
clear: left;
}

.my-text-question {
float: left;
width: 65%;
}


Otherwise read about template editor, here:
manual.limesurvey.org/The_template_editor

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 years 3 months ago by Joffm. Reason: Typo
The following user(s) said Thank You: holch
The topic has been locked.
  • shivani123
  • shivani123's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 3 months ago #145368 by shivani123
Replied by shivani123 on topic CSS class field in advance setting of question..
thank you... :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose