How to change background color?

How to change background color? Also, please tell me if the background can change colors multiple times! Thanks!


Yes it can.

$("body").css("background-color", "rgba(0, 0, 0, 0.8)");
$("body").css("color", "yellow");

Make sure you have 4 spaces before each of those lines.


Shenry, sweet! I've always just changed it in the css file. This is so convenient! You are a rockstar!


See my post in your other question - it will allow background colors to be changed.


Wait that only changes the text color not the background


If you are using the OFFLINE Editor the background colors dont change in the editor. You have to hit "build" to see the real product.

If you are using the ONLINE editor hit "preview" not "run" to see the real product.


Log in to post a reply.

Support

Forums