Styles show up on "output" section but not actual game
echuwu
04 Dec 2017, 21:27I 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?
echuwu
04 Dec 2017, 21:40with 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.
manowar
04 Dec 2017, 21:56In 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.
echuwu
04 Dec 2017, 21:59thank you!