Styles show up on "output" section but not actual game

I use the online squiffy editor, and I'm very new to both squiffy and html. I put in this as practice:

 $('#output').css('background-color', 'AntiqueWhite');
    
    
@title New Game

Start writing! You can delete all of this text, or play around with it if you're new to Squiffy.

On the output section of the online squiffy editor, it shows the background as antiquewhite. On the preview, it's just plain white. Why is this, and how do I fix it?


with this:

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

@title hsdoifhbadhhvfy

<html>
<head>
<style>
h1   {color: blue;}
p    {color: red;}
</style>
</head>
<body>

<h1>This is a heading<h1>
<p>This is a paragraph.</p>

</body>
</html>

it shows up just fine in the output, but the preview is just blank, save for the blue restart button.


In online editor your code its ok but in the preview use this:

$('body').css('background-color', 'AntiqueWhite');

You can put both lines for sure the change take effect.


thank you!


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

Support

Forums