A question about changing the color of margins [Solved]

Hey, this is a silly question but I haven't been able to find the answer easily.

I want to make a gamebook with a black background and white font, easy enough to do, but when I go to play the game there are two large, white margins on either side of the screen I can't get rid of. Unchecking the show border box in the display tab doesn't change it.

Any ideas on how to turn the margins black?

Thank you!


K.V.

Hello.

Try adding this to the "Script when entering a page" script in code view:

JS.setCss("body","background:black")

image


Thank you so much KV! That did the trick!


K.V.

You're welcome!


NOTE:

If this were a text adventure, that could could go in the User Interface Initialisation script.


@KV; Re:Note - For Text Adventure
Or, they could go to the 'Display' tab, of the game. About half way down, it says 'Background'.
You can change the page colour, it opacity, margin colour, even have an image in the margin.
You can probably have an image on the page too. Although, that might have to go into the User Interface Initialisation Script.


K.V.

Good call, DrAgon! I never even noticed that was there!


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums