Difference between revisions of "Styling textbox in Questionnaire"

From Catglobe Wiki
Jump to: navigation, search
(Styling textbox in Questionnaire)
 
Line 1: Line 1:
 +
<accesscontrol>Administrators,,Cem,,Maysunshine</accesscontrol>
 
Currently we don't have specified class for text box in all question types. Now we only use the parent class contain the text box you want to change and then add "input" or "textarea" after it to make a new class.
 
Currently we don't have specified class for text box in all question types. Now we only use the parent class contain the text box you want to change and then add "input" or "textarea" after it to make a new class.
  

Revision as of 10:32, 4 October 2011

<accesscontrol>Administrators,,Cem,,Maysunshine</accesscontrol> Currently we don't have specified class for text box in all question types. Now we only use the parent class contain the text box you want to change and then add "input" or "textarea" after it to make a new class.

Example for Open answer in Single / Multi question:

.answer_option_cell input{ height:40px;}

This way is inconvenient a little bit because if we add this class to questionnaire layout stylesheet, it will take effect on all text boxes using the same class. So if you want to change style of text box in only that question, you can put new class in the stylesheet section in questionnaire editor or use jQuery.

Here some images for you to see relationship between class and text box so you can add more class to edit it.

Textgrid

.grid_inner input { height:30px;}

Textgrid.png


Single/Multi open answer

.answer_option_cell input {    height:40px;}

Single openanswer.png


Number or text question

.question_content input { height:30px;}

Number.png


Open questions

.question_outer textarea { height:200px;}

Open.png