HTML color code isn't showing when you preview the game.

Toe Thief
19 Nov 2019, 18:16

So, in the online version of squiffy i put this HTML code for background color and it worked in the output section. But when i click preview of play the game it wont show up, why is that?

I put 4 tabs at the beginning of the code, it wont show here.

$('#output').css('background-color', 'Black');
$('#output').css('color', 'Maroon');

Would anyone help me with this? Maybe i got the code wrong.


Khep
30 Dec 2019, 00:56

I can't help much, except to say it's probably the same as working with the offline version -- the preview pane doesn't seem to be very reliable when it comes to showing changes to CSS styles.