Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
General questions and topics about Xerte Toolkits that don’t fit anywhere else.
  • Page:
  • 1

TOPIC:

Modify Exercise: changing input font size? 8 years 1 month ago #4124

  • cnolan-grant
  • cnolan-grant's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 33
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Modify Exercise: changing input font size? 8 years 1 month ago #4125

  • Fay
  • Fay's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 229
  • Thank you received: 92
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:
$('#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:
$('#initText, #answerTxt, #modelTxt').width('50%');

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ingdon
Time to create page: 0.043 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search