Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
text stimuli presented as a list
#1
Hello! Sorry if this is a very dull question, but I'm trying to present text stimuli as a vertical list as in: 
Item1
Item2
Item3
Participants are told to memorize the three items before continuing. However, I keep getting the following, horizontal display instead: 
Item 1 Item 2 Item 3
Here's my code: 
 "type": "text",
  "size": "2rem",
  "alignment": "center",
  "content": "Item 1\n Item 2 \n Item 3"
I've done a pretty big dive in the grammar as well as on google trouble shooting JSON, and I've tried various things, but with no luck.
This is mostly because it looks much better in presentation (and I do think it's more approachable). If there's no way to get the list vertical rather than horizontal, it isn't the end of the world, but I thought I'd better ask. Again- apologies if this is very obvious and thank you for your help!
Reply
#2
Hi Jane! you'd just want to use HTML tags like <br> for a single line break or a pair of <p>YOUR CONTENT HERE</p> for a paragraph break. Since it's rendered on the web, "\n" doesn't really work, which is a terminal line breaker.

Hope this helps!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)