General questions and topics about Xerte Toolkits that don’t fit anywhere else.

Modify Exercise: changing input font size?

  • cnolan-grant
  • Auteur du sujet
  • Hors Ligne
  • Membre junior
  • Membre junior
Plus d'informations
il y a 9 ans 8 mois #4124 par cnolan-grant
Modify Exercise: changing input font size? a été créé par cnolan-grant
Hello all

I've just had a query from a user on whether the size of the input text (i.e. Initial Text, Answer Prompt, Model Answer) could be changed in a Modify Exercise? I couldn't see how to do it, but wanted to check on this forum.

Thank you!

Candace

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 8 mois #4125 par Fay
Réponse de Fay sur le sujet Modify Exercise: changing input font size?
If you are running a recent version of Xerte then you can add the 'Script' optional property to the page and copy this in to it:
Code:
$('#initText, #answerTxt, #modelTxt').attr('rows',1);

Rows is the number of lines in the text box. You could also change the width in a similar way:
Code:
$('#initText, #answerTxt, #modelTxt').width('50%');

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: ingdon
Temps de génération de la page : 0.256 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo