Change background color

PennController for IBEX Forums Support Change background color

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5730
    carlap
    Participant

    Hi!

    Does anybody know how to change the background color of the entire page? Is it possible?

    Thanks!

    • This topic was modified 3 years, 10 months ago by carlap.
    #5732
    Jeremy
    Keymaster

    Hi,

    You can upload a file named global_z.css to the aesthetics folder and write this into it:

    body {
      background-color: lightyellow;
    }

    Jeremy

    #6957
    jherringt
    Participant

    I’d looking into how to change the background color of the page in the middle of a newTrial event, rather than with the global_main.css (which, btw, was what I modified to change the color, rather than global_z.css). Is there a command that can change the background color within a trial? Thank you!

    #6958
    Jeremy
    Keymaster

    Hi,

    You could insert this command:

    newFunction( ()=>$("body").css("background-color","lightgray") ).call()

    in your trial whenever you want to change the page’s background

    Incidentally, changing the background’s color is also what the custom element type in this guide on the documentation allows you to do

    Jeremy

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.