This is the place for questions about learning design and pedagogy; how to use different page types for different purposes.

Gap fills and c-tests

  • simonbarne
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 7 months ago #8425 by simonbarne
Gap fills and c-tests was created by simonbarne
C-tests are a kind of cloze test, where the second half of some words is omitted and has to be entered by the student. See this example:



Xerte gap fills can be used if you make the input text left-aligned but sometimes the first part of the word is on one line and the input box is on the next line (underlined in red in my example).

Is there any way of keeping the two together? I looked into CSS solutions like
Code:
white-space: nowrap;
but can't find anything suitable.

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

More
3 years 7 months ago #8426 by Fay
Replied by Fay on topic Gap fills and c-tests
Hi Simon

It's a bit fiddly but you can do this by surrounding each word with a div tag and making them inline-blocks (you will need to view the source and make the edits there)

<div style="display:inline-block">pl|ants|</div>
The following user(s) said Thank You: simonbarne

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

  • simonbarne
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 7 months ago #8428 by simonbarne
Replied by simonbarne on topic Gap fills and c-tests
Thank you very much for the suggestion, but ideally teachers would be able to make these tests after a little training, so the process needs to be as straightforward as possible!

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

  • simonbarne
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 7 months ago #8429 by simonbarne
Replied by simonbarne on topic Gap fills and c-tests
I think I've found a partial solution:
Code:
#targetHolder { white-space: nowrap; } .staticTxt { white-space: normal; }



The input boxes do get truncated somewhat by the right-hand border though.

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

Moderators: ingdon
Time to create page: 0.143 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo