Skip to content
Discussion options

You must be logged in to vote

Hi Giulio, yes, you can do this by setting the background-image CSS property for the sort area element. I suggest using both the ID and class in the CSS selector (to avoid potential problems with your CSS rule being overwritten due to conflicting rules with greater precedence, see the jsPsych CSS docs page for more info). Both the ID and class for the sort area are called "jspsych-free-sort-arena", so your CSS rule would look like this:

<style>
  #jspsych-free-sort-arena.jspsych-free-sort-arena {background-image: url('img/1.gif');}
</style>

This is a general CSS rule that will add the same background image ('img/1.gif') to all free-sort trials.

If you're using jsPsych version 6.3.0 or hig…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@giuconte
Comment options

Answer selected by becky-gilbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants