Actions

QS

CSS Class: Difference between revisions

From LimeSurvey Manual

(Marked this version for translation)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
<!--T:21-->
<!--T:21-->
<languages />
<languages />
<onlyinclude>
<onlyinclude>
===CSS class (css_class)=== <!--T:22-->
===CSS class (css_class)=== <!--T:22-->
'''Description'''
'''Description'''


<!--T:23-->
<!--T:23-->
If you want to add special CSS classes to certain questions you can enter the CSS class name(s) at this question attribute. Make sure to enter a space between different class names.
If you want to add special CSS classes to certain questions, you can enter the CSS class name(s) in this box. Make sure you leave an empty space between different class names.
 


<!--T:24-->
<!--T:24-->
Line 15: Line 14:


<!--T:25-->
<!--T:25-->
Any text string with a space between different CSS class names.  
* Any text string with a space between different CSS class names.  


<!--T:27-->
<!--T:27-->
You can use Expression Manager for class names {{NewIn|3.0.0}} . Remind the class name is not updated dynamically, then use only static variables or question in another page.
{{Hint|Text=You can also insert an [[ExpressionScript - Presentation|expression]] in this box{{NewIn|3.0.0}}. Remember that the output of the expression will not be updated dynamically.}}


<!--T:28-->
<!--T:28-->
{{Alert|[http://www.w3.org/TR/CSS2/syndata.html#characters According to the W3C] CSS class names can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A1 and higher, plus the hyphen (-) and the underscore (_); they cannot start with a digit, or a hyphen followed by a digit. LimeSurvey encode class, but don't fix it totally.}}
{{Alert|[http://www.w3.org/TR/CSS2/syndata.html#characters According to the W3C], CSS class names can contain only the characters [a-zA-Z, and 0-9] and ISO 10646 characters U+00A1 and higher, plus the hyphen (-) and the underscore (_). They cannot start with a digit, or a hyphen followed by a digit. LimeSurvey encodes CSS classes, but it does not fix it totally.}}
 
 
 
<!--T:26-->
</onlyinclude>
</onlyinclude>


<!--T:20-->
<!--T:20-->
[[Category:Question Settings]][[Category:Advanced Question Settings]]
[[Category:Question Settings]][[Category:Question Display Options]]


</translate>
</translate>

Latest revision as of 11:35, 15 April 2020


CSS class (css_class)

Description

If you want to add special CSS classes to certain questions, you can enter the CSS class name(s) in this box. Make sure you leave an empty space between different class names.

Valid values

  • Any text string with a space between different CSS class names.
 Hint: You can also insert an expression in this box (New in 3.0.0 ). Remember that the output of the expression will not be updated dynamically.


  According to the W3C, CSS class names can contain only the characters [a-zA-Z, and 0-9] and ISO 10646 characters U+00A1 and higher, plus the hyphen (-) and the underscore (_). They cannot start with a digit, or a hyphen followed by a digit. LimeSurvey encodes CSS classes, but it does not fix it totally.