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

Modify Exercise: changing input font size?

  • cnolan-grant
  • Onderwerp Auteur
  • Offline
  • Junior lid
  • Junior lid
Lees meer
10 jaren 2 dagen geleden #4124 door cnolan-grant
Modify Exercise: changing input font size? werd gestart door 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

Graag Inloggen of een account aanmaken om deel te nemen aan het gesprek.

Lees meer
10 jaren 2 dagen geleden #4125 door Fay
Beantwoord door Fay in topic 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%');

Graag Inloggen of een account aanmaken om deel te nemen aan het gesprek.

Moderators: ingdon
Tijd voor maken pagina: 0.526 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo